[web2py] Re: grid custom button icons

2011-10-23 Thread ニコノコ

I create new buttons like this in the grid:
links = [lambda row: A('X', _href=URL(args=["view", db.person,
row.id] ))]

How should I specify an icon for the new button?

On Oct 19, 10:04 pm, Bruno Rocha  wrote:
> Herehttps://github.com/michenriksen/css3buttonsyou can find a list of all
> suported classes for standard style,
>
> for the ui-icon option take a look at jquery-ui theme roller page


Re: [web2py] Re: grid custom button icons

2011-10-19 Thread Bruno Rocha
Here https://github.com/michenriksen/css3buttons you can find a list of all
suported classes for standard style,

for the ui-icon option take a look at jquery-ui theme roller page


Re: [web2py] Re: grid custom button icons

2011-10-19 Thread Martín Mulone
ui = dict(widget='ui-widget',
  header='ui-widget-header',
  content='ui-widget-content',
  default='ui-state-default',
  cornerall='ui-corner-all',
  cornertop='ui-corner-top',
  cornerbottom='ui-corner-bottom',
  button='ui-button-text-icon-primary',
  buttontext='ui-button-text',
  buttonadd='ui-icon ui-icon-plusthick',
  buttonback='ui-icon ui-icon-arrowreturnthick-1-w',
  buttonexport='ui-icon ui-icon-transferthick-e-w',
  buttondelete='ui-icon ui-icon-trash',
  buttonedit='ui-icon ui-icon-pencil',
  buttontable='ui-icon ui-icon-triangle-1-e',
  buttonview='ui-icon ui-icon-zoomin',
  )


SQLFORM.grid(...
 ui=ui)

or default definition:

ui = dict(widget='',

header='',

content='',

default='',

cornerall='',

cornertop='',

cornerbottom='',

button='button',

buttontext='buttontext button',

buttonadd='icon plus',

buttonback='icon leftarrow',

buttonexport='icon downarrow',

buttondelete='icon trash',

buttonedit='icon pen',

buttontable='icon rightarrow',

buttonview='icon magnifier',

)


this is are css class name, take a look to static/base.css



2011/10/19 Nik Go 

> *bump*
>
>
> On Tuesday, October 18, 2011, Nik Go wrote:
>
>>
>> how do I specify the other icons available from the default icon sprite?
>>
>>
>>


-- 
 http://martin.tecnodoc.com.ar


[web2py] Re: grid custom button icons

2011-10-19 Thread Nik Go
*bump*

On Tuesday, October 18, 2011, Nik Go wrote:

>
> how do I specify the other icons available from the default icon sprite?
>
>
>