add clearable

This commit is contained in:
Emmanuel Garette 2019-01-17 09:40:52 +01:00
parent 260cd77d55
commit 36936edbe1
1 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,8 @@ class TiramisuOptionOption:
props.append('frozen')
if model.get('hidden'):
props.append('hidden')
if self.form.get(self._path, {}).get('clearable'):
props.append('clearable')
return props
def requires(self) -> None: