Range field #1396
Replies: 2 comments
-
|
Based on the knowledge sources, your usage of the range field is mostly correct, but there are a few details to clarify:
CRUD::addField([
'name' => 'send_notification_reminder_days_back',
'label' => trans('backpack::ash_base.site_fields.send_notify_reminder_days_back'),
'type' => 'range',
'attributes' => [
'min' => 0,
'max' => 1,
],
'showValue' => true,
'tab' => trans($this->tabNotifications)
]);This matches the example from the official documentation: CRUD::field([ // Range
'name' => 'range',
'label' => 'Range',
'type' => 'range',
//optional
'attributes' => [
'min' => 0,
'max' => 10,
],
]);
If you still experience issues after this change, please provide more details about the error or how it is not working, as the knowledge sources do not mention a current bug with the range field itself. Summary:
Let me know if you need further help! ℹ️ Please note our AI Bot does not reply to follow-ups, this will be the only AI answer in this thread. If the AI helped you find the answer, please mark it as answered or write details below so it can learn. Then close the conversation. If not, please give more information for when a human reads this. ℹ️ Relevant sources: Github Issue (closed): [BUG] Date_range start_name value always falls back to default |
Beta Was this translation helpful? Give feedback.
-
|
For my test this range field is not working as aspected.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to use this field but docs https://backpackforlaravel.com/docs/6.x/crud-columns#range-1 not working for me..
Is it a bug or i'm wrong ? this is my code:
CRUD::addField([
'name' => 'send_notification_reminder_days_back',
'label' => trans('backpack::ash_base.site_fields.send_notify_reminder_days_back'),
'type' => 'range',
'min' => 0,
'max' => 1,
'showValue' => true,
'tab' => trans($this->tabNotifications)
]);
Beta Was this translation helpful? Give feedback.
All reactions