F
Filamentβ€’8mo ago
Ozumat77

Need Help Defining Values for TextInputColumn Checkbox Type

Hello πŸ‘‹οΈ I'm currently working on a project involving the use of the TextInputColumn in Filament. Specifically, I'm looking to define values for this column when it's of type checkbox. Has anyone worked with this before and could guide me on the best approach to take?
5 Replies
toeknee
toekneeβ€’8mo ago
It's not possible? TextinputColumn is for text, a checkbox is an array?
Ozumat77
Ozumat77OPβ€’8mo ago
There's a CheckboxColumn but i can't really use it. In the table, there's some specific records where I'll need to use the TextInputColumn, while for others, the CheckboxColumn (or type('checkbox') method) will suffice
toeknee
toekneeβ€’8mo ago
That's not making much sense, you either have a Checkbox value or a Text value for the 1 column, you can't have both?
Ozumat77
Ozumat77OPβ€’8mo ago
I understand the confusion. Allow me to clarify the structure of my table. While most entries indeed have either a Checkbox value or a Text value for the column, there are specific records where I need to accommodate both types of values within the same column. For instance, some entries require textual input via the TextInputColumn, while others necessitate the checkbox functionality provided by the CheckboxColumn because the values are pre-defined if you have any suggestions on how to manage this mixed requirement effectively, I'd be grateful for your insights.
toeknee
toekneeβ€’8mo ago
I can't see how you would handle this at all in a column setting given both are completely different data types.
Want results from more Discord servers?
Add your server