You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to configure a Model that can have various types and sub-types.
In the Ui when a user selects the sub-type, I'd like to show field names based on the sub-type.
In this case API connection details for various API integrations, where users can enter their own details like api_token or other required parameters that can of course differ between integrations...
I also made it work, as shown below. The problem is though, that the selected value is hard-coded, is there a way to get the selected value dynamically?
NovaDependencyContainer::make([
Select::make('Api Integration', 'api_integration')
->help('Select API integration.')
->options(
make_nova_options([
config('services.conversion_apis.cj'),
], 'label', 'type')
)
->displayUsingLabels(),
NovaDependencyContainer::make([
KeyValue::make('Api Configuration', 'api_user_config')
->rules('json')
->required()
->disableAddingRows()
->disableEditingKeys()
->disableDeletingRows()
->keyLabel('Config Name')
->valueLabel('Config Value')
->withMeta([
'value' => $this->data ?? config('services.conversion_apis.cj.user_config'),
]),
])->dependsOn('api_integration', 'cj'), // <---- can I get this somehow?
])->dependsOn('integration_type', ConversionSourceTypes::Api),
The text was updated successfully, but these errors were encountered:
Thanks a lot for this package! :)
I'm trying to configure a Model that can have various types and sub-types.
In the Ui when a user selects the sub-type, I'd like to show field names based on the sub-type.
In this case API connection details for various API integrations, where users can enter their own details like
api_token
or other required parameters that can of course differ between integrations...I also made it work, as shown below. The problem is though, that the selected value is hard-coded, is there a way to get the selected value dynamically?
The text was updated successfully, but these errors were encountered: