Own Icons like Print, Filter , Export ?

Talk about programming tricks and examples

Moderators: ne_moj, zewa, vadimako, ne_moj, zewa, vadimako

kasumovic
Expert
Expert
Posts: 87
Joined: Sep 7th, '10, 22:38

Own Icons like Print, Filter , Export ?

Postby kasumovic » Nov 3rd, '10, 14:44

Hello ,

It's possible to implement own icons , like printing , filter or export ?
For my needs i wold like to have this on left side of the grid (on the same height, only left of them)

So when user need to change to another page they can use this instead some "ugly" links.

If this is not possible, would be nice to have this in next release

regards
kasumovic

administrator
Site Admin
Site Admin
Posts: 5990
Joined: Jan 7th, '09, 23:18
Contact:

Re: Own Icons like Print, Filter , Export ?

Postby administrator » Nov 11th, '10, 11:31

If you need to move them to the left side, you may do this by customizing datagrid.class.php. You may also change icon images on yours in appropriate styles folder. Is this your question?

kasumovic
Expert
Expert
Posts: 87
Joined: Sep 7th, '10, 22:38

Re: Own Icons like Print, Filter , Export ?

Postby kasumovic » Nov 11th, '10, 11:55

No ...

My question was , can we put own icons additional ... so like print , export , filter, refresh...

I have look in datagrid.class.php , and have not found something like this .

it would be nice that you put property like $dgrid->CustomizedAction = "our html content" ;

and that this will be shown Opposite of your print/export/refresh icons.

This could be nice feature if user must go start some own action what doesnt have to do with $dgrid , like logout , go to main menue ...

administrator
Site Admin
Site Admin
Posts: 5990
Joined: Jan 7th, '09, 23:18
Contact:

Re: Own Icons like Print, Filter , Export ?

Postby administrator » Nov 26th, '10, 20:00

http://www.apphp.com/php-datagrid/index ... ng_started

Allows displaying additional links etc. at the top of DataGrid
navigationBar = "";


Example of use: $dgrid->navigationBar = "<a href=''>My Link</a>";


Return to “Programming Tricks”