Package s3 :: Module s3widgets :: Class S3StringWidget
[frames] | no frames]

Class S3StringWidget

source code

??-301 --+
         |
        S3StringWidget

Extend the default Web2Py widget to include a Placeholder

Instance Methods
 
__init__(self, columns=10, placeholder=None, prefix=None, textarea=False)
Constructor
source code
 
__call__(self, field, value, **attributes) source code
Method Details

__init__(self, columns=10, placeholder=None, prefix=None, textarea=False)
(Constructor)

source code 

Constructor

Parameters:
  • columns - number of grid columns to span (Foundation-themes)
  • placeholder - placeholder text for the input field
  • prefix - text for prefix button (Foundation-themes)
  • textarea - render as textarea rather than string input

__call__(self, field, value, **attributes)
(Call operator)

source code