w2ui

how to popup image over the screen after clicking the image

混江龙づ霸主 提交于 2020-01-07 06:58:21
问题 In my code, there is a lot of image in a table. I want to click a photo & then the photo will popup in a large size over the screen. But I do not have much idea about javascript & jquery. I try to do this but the problem is it popup a box but don't show the picture. I know that there is a problm in script to show the picture. can u please tell me where is the wrong or give me a proper code for popup image after click. my header link is below. is there need any other link to be added?? <script

Add custom color to w2ui cell [Grid]

拈花ヽ惹草 提交于 2019-12-25 04:25:14
问题 I am trying to add color to the cell of w2ui grid. After following the documentation, I am able to change the color of the cell and the row (but individually). For a single cell: records: [ { recid: 1, fname: 'Jane', lname: 'Doe', email: 'jdoe@gmail.com', sdate: 384052483664, style: {3:'background-color: yellow; color: white;'}} ] For a single row: records: [ { recid: 1, fname: 'Jane', lname: 'Doe', email: 'jdoe@gmail.com', sdate: 384052483664, style: 'background-color: red; color: white;'} ]

Map json to menu in Openui5

你。 提交于 2019-12-25 02:55:36
问题 In w2ui I can map a json to a sidebar http://w2ui.com/web/demos/#!sidebar/sidebar-1 Can I do it in openui5? I want the same result. Obviously I do not want a tree but a list of items that swipe right if I tap on an item (and visualize a sub-menu list) and slide left if I press back button (and visualize the menu at upper level). 回答1: I think it's possible, but as far as I know you have to do some manual labor: Detect whether your node has one or more child nodes, and based on that set the sap

Add custom icons in 'w2ui' toolbar

扶醉桌前 提交于 2019-12-12 01:43:28
问题 How to add custom icons in w2ui toolbar. I need to add redo and undo icons in w2ui toolbar. Could you please let me know? 回答1: You can use font awesome or any other CSS class based icons in a w2ui toolbar. Example: $(function () { $('#toolbar').w2toolbar({ name: 'toolbar', items: [ { type: 'button', id: 'item1', text: 'Undo', icon: 'fa fa-undo' }, { type: 'button', id: 'item2', text: 'redo', icon: 'fa fa-repeat' } ], onClick: function (event) { console.log('Target: '+ event.target, event); }

w2ui with jquery 3.1.1 grid not showing records

核能气质少年 提交于 2019-12-11 05:25:39
问题 I'm trying to make w2ui grid with some data in it shown on page. But if I use jquery 3.1.1 grid is rendered and shown, but records are not shown (reload button make them appear but that's not a solution). My code: <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <script src="w2ui/jquery-3.1.1.js"></script> <script type="text/javascript" src="w2ui/w2ui-1.5.rc1.js"></script> <link rel="stylesheet" type="text/css" href="w2ui/w2ui-1.5.rc1.css" /> </head> <body> <div id="main" style="width