Servoy Extra Components 1.1.2

Announcements of the latest WebComponents for NGClient (shipped by the WebPackageManager)

Servoy Extra Components 1.1.2

Postby jcompagner » Fri Feb 10, 2017 4:57 pm

Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8179
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet

Re: Servoy Extra Components 1.1.2

Postby Gordon McLean » Thu Feb 23, 2017 4:55 pm

The SideBar component has a style which highlights the selected menu when clicked. IF you add a controller script to onMenuItemSelected this behaviour is removed is there a way to maintain the feature when its a working button ?

rgds
Gordon
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 225
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: Servoy Extra Components 1.1.2

Postby patrick » Thu Feb 23, 2017 5:13 pm

Could you file an issue at https://github.com/Servoy/servoy-extra- ... nts/issues? Then it will be looked at...
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3668
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: Servoy Extra Components 1.1.2

Postby paronne » Thu Feb 23, 2017 5:18 pm

Hi Gordon, does your onMenuItemSelected return true ?
The onMenuItemSelected event can prevent the selection of the item if does not return true.
paronne
 
Posts: 123
Joined: Fri Nov 02, 2012 3:21 pm

Re: Servoy Extra Components 1.1.2

Postby Gordon McLean » Thu Feb 23, 2017 5:30 pm

It did not and I have now amended it which has fixed the problem thanks

Suggest a note to this effect is added to the docs

G
Gordon McLean
Clickdigital.com
Gordon McLean
 
Posts: 225
Joined: Wed Aug 03, 2005 12:24 pm
Location: UK

Re: Servoy Extra Components 1.8.0

Postby rafig » Tue Mar 26, 2019 9:28 pm

[This section of the forum is not being updated when new versions of Components are being released, so I am having to add a post under older version of this component, but I am using latest 1.8 version]
Please can someone explain what seems to be contradictory information in the Wiki about the settings for the Table in this component?
I am trying to place a table 'panel' on the left of a detail view in a responsive form & want the height of it to automatically adjust to the height of the window, so as window height changes, so does the number of rows in table (& therefore the table height), but I cannot seem to get it to work.
If I set the 'responsiveDynamicHeight' to 'true', it doesn't seem to do anything.
I try then changing the 'responsiveHeight' to '0' (zero), but then the table doesn't show anything.
I HAVE to have a height set for the table, and then it doesn't change with the window height!
The wiki page https://github.com/Servoy/servoy-extra-components/wiki/Table is not very clear on the settings, with the top paragraph saying
It can be used both in responsive forms and absolute forms. If used in responsive mode, its 'responsiveHeight' property must be set in Properties View (which is the fixed height it will occupy)
which doesn't really seem to be what one would want in a responsive form :?
The lower table has these settings
TableCompParams.png

which seem to be mutually exclusive??
If it helps, the 'outline' of my form is
MyOutline.png

This has frustrated me for a long time & I've finally got round to posting asking for help ;-)
Thanks
Rafi
You do not have the required permissions to view the files attached to this post.
Servoy Certified Developer
Image
rafig
 
Posts: 530
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Servoy Extra Components 1.1.2

Postby Gabi Boros » Wed Mar 27, 2019 1:56 pm

about the 'responsiveDynamicHeight' (default false) - when this is set, the height is defined by the nr of rows; if the calculated height exceeds 'responsiveHeight', then the later will be used as height (it is used as max height) (I also updated the doc with this). so the height of the table, when used in responsive mode, depends only on its content or on the value of 'responisveHeight', but not on the window height
Gabi Boros
Servoy
Gabi Boros
 
Posts: 344
Joined: Tue Jun 26, 2007 4:03 pm
Location: Timisoara, Romania

Re: Servoy Extra Components 1.1.2

Postby rafig » Wed Mar 27, 2019 2:37 pm

Gabi Boros wrote:about the 'responsiveDynamicHeight' (default false) - when this is set, the height is defined by the nr of rows; if the calculated height exceeds 'responsiveHeight', then the later will be used as height (it is used as max height) (I also updated the doc with this). so the height of the table, when used in responsive mode, depends only on its content or on the value of 'responisveHeight', but not on the window height

Thank you Gabi for (trying to) clarify this (& updating the docs).
So are you telling me that there is no way that I can have a table/list whose size automatically/dynamically changes the number of rows based on the window height??
I'm happy to use a different component that does do this if needed, but it seems very odd that Servoy is pushing to NG/Responsive, yet we still have to specify a 'height' for something when we don't know what the target window size might be (iPhone / iPad / tablet / desktop / ?? )
How should we create a scrolling table/list of records that adjusts correctly??
Thanks
Rafi
Servoy Certified Developer
Image
rafig
 
Posts: 530
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK

Re: Servoy Extra Components 1.1.2

Postby paronne » Wed Mar 27, 2019 2:46 pm

Hi Rafi,

In responsive forms the height of a table component is set to the responsiveHeight property. The responsiveDynamicHeight allow the table to reduce it's height when there are only few rows available (it can avoid showing empty gaps).
If you want the table to fill the whole available height you should control the style of it's responsive container and set the responsiveHeight of the table to 0. Check the sample of this wiki page: https://github.com/Servoy/12grid/wiki/Flexbox-Layout.

Note i would usually use a non-responsive forms when you want your table to use all available height because in fact you try to reproduce the behavior of an anchored form into a responsive form; i see that you want to move the formpabel below the grid on smaller screens using the bootstrap columns; this justify the use of a responsive form for you. When you hit the breakpoint probably you don't want your table to take all the available height... because if your table contains only few rows then you will have an empty gap on top of your formpanel; so also the Flexbox layout i suggested above doesn't do what you really need. You will need to create your own CSS to control such behavior.

Regards,
Paolo
paronne
 
Posts: 123
Joined: Fri Nov 02, 2012 3:21 pm

Re: Servoy Extra Components 1.1.2

Postby rafig » Wed Mar 27, 2019 6:37 pm

Thanks Paolo,
I will have a look at that & see if I can come up with the best compromise ;-)
Servoy Certified Developer
Image
rafig
 
Posts: 530
Joined: Mon Dec 22, 2003 12:58 pm
Location: Watford, UK


Return to Web Components

Who is online

Users browsing this forum: No registered users and 1 guest

cron