Search found 9 matches

by bambirra
Tue Apr 02, 2019 12:01 am
Forum: Components
Topic: Change switch (checkbox) state programmatically
Replies: 1
Views: 98

Change switch (checkbox) state programmatically

Hi, I'm trying to change the state of the switch (checkbox) programmatically, but it is not working. On the console I get the error: 'TypeError: checkbox is undefined' Html <button onclick="changeCheckboxState()">test</button> <br><br> <input id="chkClose" name="chkClose" type="checkbox" data-role="...
by bambirra
Wed Feb 13, 2019 12:00 am
Forum: Components
Topic: Component Table: Getview
Replies: 0
Views: 130

Component Table: Getview

Hi, I saw that with the Table component I can save the current view on the server, and that when the Table is reloaded it calls a get function using the id. Thinking about this functionality, I want to create some pre-defined views so that the user could choose according to needs. How can I call a "...
by bambirra
Thu Aug 23, 2018 6:34 pm
Forum: Components
Topic: Metro 4 Select limits for options
Replies: 6
Views: 812

Re: Metro 4 Select limits for options

Hi drodriguez, In the example, I put the dots in the options 47 and 48 to exemplify. In the real world I have 147 options and in some have dots, like to items 47 and 48 of the example. These dots generate an exception and do not complete the loading of the options. part of JSON in production: { ... ...
by bambirra
Wed Aug 22, 2018 11:35 pm
Forum: Components
Topic: Metro 4 Select limits for options
Replies: 6
Views: 812

Re: Metro 4 Select limits for options

Sorry for the delay in responding.

I've replicated the error in this codepen as you requested.
https://codepen.io/bambirra/project/editor/XRaPOL

I found the error. The option 47 is 'Item.47' and this dot in the option throws an exception, when I change the option to 'Item 47' it works.
by bambirra
Thu Aug 16, 2018 9:19 pm
Forum: Components
Topic: Metro 4 Select limits for options
Replies: 6
Views: 812

Metro 4 Select limits for options

Hi, I'm using the Metro 4 Select component and noticed that there is a limit of 85 options. I load my select with a JSON object by ajax. When my return has more than 85 items these are not loaded by the component. Loading code: $.get({ url: servidor + 'assets/listslct/rh_setores_id', cache: false })...
by bambirra
Mon Aug 13, 2018 11:51 pm
Forum: Components
Topic: Table load data programmatically
Replies: 7
Views: 961

Re: Table load data programmatically

Thanks for your help.

I inserted your code into the function of the button and it worked (without applying the update to version 4.2.19). My mistake was in the second parameter of the loadData function, I didn't inserted anything, in fact, I should have defined it as true.
by bambirra
Mon Aug 13, 2018 9:41 pm
Forum: Components
Topic: Table load data programmatically
Replies: 7
Views: 961

Re: Table load data programmatically

I updated, but the error continues. Here is the error in the console. https://preview.ibb.co/bRJny9/console_error_v4_2_18.png https://preview.ibb.co/bzeV1U/console_data_loaded_v4_2_18.png Here showing that the data is loaded. https://preview.ibb.co/mExdo9/console_data_loaded_with_table_instantiation...
by bambirra
Mon Aug 13, 2018 9:19 pm
Forum: Components
Topic: Table load data programmatically
Replies: 7
Views: 961

Re: Table load data programmatically

Hi,
follow as pictures.

here showing the error that appears on the console.
Image


and here showing that the data is loaded.
Image

Thanks.
by bambirra
Mon Aug 13, 2018 9:00 pm
Forum: Components
Topic: Table load data programmatically
Replies: 7
Views: 961

Table load data programmatically

Hi, I'm using the Table component, and when I load the data programmatically I haven't succeeded. I instantiate my table like this: <table id =" demo-table " class = "table-border striped row-hover mt-4 entities-table" style = "min-width: 300px! important;" data-role = "table" data-cls-table-top = "...