Add support for toggling visibility of email profile settings
This commit is contained in:
parent
7d3f2e6bdf
commit
d52a186e12
5 changed files with 188 additions and 18 deletions
tailbone/grids
|
@ -1492,6 +1492,12 @@ class GridAction(object):
|
|||
return self.url(row, i)
|
||||
return self.url
|
||||
|
||||
def render_icon(self):
|
||||
"""
|
||||
Render the HTML snippet for the action link icon.
|
||||
"""
|
||||
return HTML.tag('i', class_='fas fa-{}'.format(self.icon))
|
||||
|
||||
def render_label(self):
|
||||
"""
|
||||
Render the label "text" within the actions column of a grid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue