(self, iterable_of_str=None, default_value="", input_type='text', *args, **kwargs)
| 3643 | def attr_input_type(self, value): self.selection_input.attr_input_type = str(value) |
| 3644 | |
| 3645 | def __init__(self, iterable_of_str=None, default_value="", input_type='text', *args, **kwargs): |
| 3646 | super(SelectionInputWidget, self).__init__(*args, **kwargs) |
| 3647 | options = None |
| 3648 | if iterable_of_str: |
| 3649 | options = list(map(DatalistItem, iterable_of_str)) |
| 3650 | self.datalist = Datalist(options) |
| 3651 | self.selection_input = SelectionInput(default_value, input_type, style={'top':'0px', |
| 3652 | 'left':'0px', 'bottom':'0px', 'right':'0px'}) |
| 3653 | self.selection_input.set_datalist_identifier(self.datalist.identifier) |
| 3654 | self.append([self.datalist, self.selection_input]) |
| 3655 | self.selection_input.oninput.do(self.oninput) |
| 3656 | |
| 3657 | def set_value(self, value): |
| 3658 | """ |
nothing calls this directly
no test coverage detected