easyUI dialogダイアログtitleのプロパティ値を取得

14580 ワード

 1 <div id="dlg" class="easyui-dialog" title="Toolbar and Buttons" style="width:1040px;height:600px;padding:10px" 

 2             data-options="

 3                 

 4                 buttons: [{

 5                     text:' ',

 6                     iconCls:'icon-ok',

 7                     handler:function(){

 8                         ChangeMessage();

 9                     }

10                 },{

11                     text:' ',

12                     handler:function(){

13                         alert('cancel');;

14                     }

15                 }]

16             ">

17 

18 

19         <table id="detail_table" iconCls="icon-save" title="My Window" style="width: 100%; height: 300; font-size: 14px;" class="table">

20     <tr>

21         <td align="right"> </td>

22         <td align="left"><input id="MessageId" class="combo datebox" style="width:180px; height: 20px;" readonly="true"></td>

23         <td align="right"> </td>

24         <td align="left"><input id="MessageTitle" class="combo datebox" style="width:180px; height: 20px;"></td>

25         <td align="right"> </td>

26         <td align="left">

27             <select id="MessageType" class="easyui-combobox" panelHeight="auto" style="width:180px" onchange="MessageType_change(this)">

28                 <option value="MODE"> </option>

29                 <option value="MENU"> </option>

30                 <option value="TEXT"> </option>

31             </select>

32         </td>

33     </tr>

34     <tr>

35         <td align="right"> </td>

36         <td align="left"><input id="ParentID" class="combo datebox" style="width:180px; height: 20px;" readonly="true"></td>

37         <td align="right"> </td>

38         <td align="left"><input id="MessageAuthorId" class="combo datebox" style="width:180px; height: 20px;" value="admin" readonly="true"></td>

39         <td align="right"> </td>

40         <td align="left"><input id="MessageDate" class="combo datebox" style="width:180px; height: 20px;" readonly="true"></td>

41     </tr>

42 

43 

44     <tr id="Content_textarea">

45         <td colspan="6">

46              &emsp;

47             <textarea class="ckeditor" cols="80" id="MessageContent_ckeditor" name="editor1" rows="10"></textarea>

48            

49         </td>

50     </tr>

51 @*    <tr id="Content_input">

52         <td>

53              

54         </td>

55         <td><input id="MessageContent" class="combo datebox" style="width:180px; height: 20px;"></td>

56         <td colspan="4"></td>

57     </tr>*@

58     <tr>

59         <td colspan="6">&emsp;</td>

60     </tr>

61 </table>

62     </div>

//
   alert($('#dlg').panel('options').title);