How To Style Grid with Theme?

Forum to discuss the new web client version of Servoy.

How To Style Grid with Theme?

Postby john1598360627 » Wed Nov 11, 2020 3:11 am

What is the intended way of styling the NG Grid?

By default the NG Grid has a 'ag-theme-bootstrap' style class. Is it possible to make a modification of this theme? Or is there documentation somewhere that a template of this theme I can create myself?


For example there is this website,
http://ui-grid.info/customizer/

however when applied to the NG Grid in Servoy it just breaks.


Unless there is something I'm missing I just don't know how to make a general theme (like 'ag-theme-bootstrap').
john1598360627
 
Posts: 175
Joined: Tue Aug 25, 2020 3:03 pm

Re: How To Style Grid with Theme?

Postby sean » Thu Nov 12, 2020 11:09 pm

Hi John,

No Servoy's NG-Grid is not based on the angular UI Grid you have cited.

I recommend that you first try the theme-roller built-in editor (see screenshot) and just change properties.

However if you really want to re-theme the grid, it would take some css/less work, but of course you could make your own complete ng-grid theme.

For example, look at what is shipped in the theme roller:
https://github.com/Servoy/svyThemeRolle ... less#L1469

An example of this is the ag-theme-servoy class you can see in the Sample Solution

Best,
Sean
You do not have the required permissions to view the files attached to this post.
Software Engineer
Servoy USA
sean
 
Posts: 370
Joined: Mon May 21, 2007 6:26 pm
Location: USA


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 4 guests

cron