POST
|
I did it through min-width: .jimu-widget-myWidget #main-form-table { width: 100%; min-width: 300px; } .jimu-widget-myWidget .col-head { min-width:100px; } .jimu-widget-myWidget .col-cell { min-width:200px; } This way the table looks like a table and it won't break if something is too long.
... View more
06-21-2016
06:55 AM
|
1
|
0
|
226
|
POST
|
I know it's late, but can you mark this as the correct answer? This helped several people already (one of them linked me here) and can help even more if available without scrolling through whole discussion. Thanks! Pavel
... View more
06-14-2016
12:51 AM
|
0
|
0
|
849
|
POST
|
We solved the most important issue without changing AttachmentEditor code. So this question gets on a slightly more theoretical level, but I might still need to modify the code later, there are more issues to solve.
... View more
06-10-2016
06:58 AM
|
0
|
0
|
327
|
POST
|
I used your way, but did it in Dojo instead: dojo.query('> div > form', dojo.byId("attachment-editor-container")).style('display', 'none'); dojo.byId is important, dijit.byId or data-dojo-attach-point doesn't work when non-dijit nodes are involved. Hiding is enough for me, and at least I can show the same editor again if the user has editing privileges for other features. The last remaining issue is that after hiding the delete icons parentheses remain, but I think I will be able to handle it. EDIT: Parentheses issue solved! var spans = dojo.query('> div > span > span', dojo.byId("attachment-editor-container"));
for(var i = 0, sl = spans.length; i < sl; i++) {
spans.innerHTML = spans.innerHTML.replace(/[()]/g, '');
} I have the regex from StackOverflow, thanks to Vitim.us!
... View more
06-09-2016
11:57 PM
|
0
|
0
|
725
|
POST
|
A follow-up question for this one: is this the license for AttachmentEditor, and do I understand right that I can't legally improve the code? If I can't, are there any alternatives that either allow all the features I need (both read-and-write and read-only modes and descriptions for the attachments), or is freely upgradable? I searched and didn't find anything else. Writing a new editor from scratch just for few new features would be overkill for my current project, adding few features to existing one would be OK. I need it for a commercial project; our company already has some licenses for ESRI products (I'm not sure which ones, but I can ask).
... View more
06-08-2016
06:05 AM
|
0
|
1
|
1997
|
POST
|
Almost everywhere else table cells are equally wide within a column. It doesn't work like this in my WAB widget. I suppose that's some bug/ feature in Jimu or in JS API, though it might have been triggered by integration into MVC. It's the same for table tag and for divs with display:table. Do it need to be div with some specific class, except for a custom one? One possible solution would be to set the width values, but this might make it ugly for column names much bigger/smaller than expected and making this part of CSS code locale-dependent is a lot of work. So how can I base the cell width on the widest content in the column?
... View more
06-08-2016
04:52 AM
|
0
|
1
|
1203
|
POST
|
I have a WAB (for developers, version 1.4, JS API 3.16) widget with an AttachmentEditor. Depending on the user's privileges (managed through MVC), I want to prevent some of the users from modifying the attachments (this I can do by hiding the editor) and still showing them the attachments, but I found no way to let the editor show the attachments without permitting the user to add/delete them. Do I need to hack the editor code and use the tweaked version, or is there any clean option to do this? Bypassing AttachmentEditor completely seems to be the hardest way, so I hope it is not necessary. This is reposted from GIS.stackexchange.com.
... View more
06-05-2016
11:36 PM
|
0
|
2
|
3272
|
POST
|
Not full programmatic access, but close to! Thanks, it worked in my case!
... View more
05-26-2016
06:37 AM
|
0
|
0
|
621
|
POST
|
I have a map with unavailable layer. Now I don't want to debug it, but to remove it from my map and get rid of the "layer X cannot be added to map" messages. However, it doesn't appear in my content tab, so usual way to remove layer is unavailable here. So how can I remove the layer?
... View more
05-26-2016
04:18 AM
|
0
|
4
|
1806
|
POST
|
Solved! The reason was the querystring assigned too early, to a base URL to which the filenames are added later. So the solution would be to find where are the filenames added and make this process querystring-aware by a code similar to this one: if (widgetJson.folderUrl.indexOf("?") > -1) { url = widgetJson.folderUrl.substr(0, widgetJson.folderUrl.indexOf("?")) + 'manifest.json' + widgetJson.folderUrl.substr(widgetJson.folderUrl.indexOf("?")); } else { //this is how it looked before url = widgetJson.folderUrl + 'manifest.json'; } Kelly Hutchins: what should I do to propose this as a bugfix to the official version? In my case the bug might have been caused by my adaptation to non-standard paths due to inclusion in Orchard CMS, but I doubt that it couldn't happen in the standard version at all. If others will face the bug too, my solution should be included. The only alternative I can see is tweaking Dojo or at least JS API.
... View more
05-06-2016
04:00 AM
|
1
|
0
|
507
|
POST
|
Was it solved in the year since then? Seems not, since I face the same problem now (JS API 3.15, WAB 1.4). If not, I'll have to search for a workaround.
... View more
05-05-2016
11:38 PM
|
0
|
0
|
507
|
POST
|
Comment your line 17 out and it will work. This way you try to set the locale too many times, which results in too long loading. I just confirmed that the "hardcoded only" version works well. I didn't confirm Benedek's version, but this should be slightly faster and cleaner (if hardcoding anything could be "clean").
... View more
05-05-2016
01:38 AM
|
0
|
0
|
1732
|
POST
|
I'm developing a widget containing several subsequent forms in a complex dialog. Dijit.form.Form seems to be the proper dojo solution, but WAB already contains a form tag, so use of another form might cause a conflict breaking whole widget. For now I'm trying to write a code to read the values in each partial form, but I know it is just a dirty workaround, not a proper solution. So what is the proper way to handle subsequent forms in WAB widgets? Or is this more than what is WAB intended to handle?
... View more
04-15-2016
12:56 AM
|
0
|
1
|
1730
|
POST
|
It needs some handler which I didn't have, so I accepted Robert's answer as "correct". In practice, I will use your answer as well, reusing listeners is a good practice and my case it will be very helpful. Thanks, Ken!
... View more
04-12-2016
10:44 PM
|
0
|
0
|
2170
|
POST
|
I can't get it to work - the event is over this.map which is not a DOM node and thus doesn't contain removeEventListener , or misses the right node (I tried this.map.container.removeEventListener("click", this.onMapClick, true);). The function this.onMapClick still runs when it shouldn't. But thanks for pointing to this function, Robert!
... View more
04-12-2016
07:20 AM
|
0
|
3
|
2170
|
Title | Kudos | Posted |
---|---|---|
1 | 06-21-2016 06:55 AM | |
1 | 05-06-2016 04:00 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|