Download the PHP package formfeed-uk/nova-dependable-panel without Composer

On this page you can find all versions of the php package formfeed-uk/nova-dependable-panel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package nova-dependable-panel

Nova 4 Dependable Panel

This Laravel Nova package adds Panels that allow grouped dependsOn functionality

Dusk Test Repo: https://github.com/Formfeed-UK/nova-dependable-panel-tests

Requirements

Features

Note that this package is an extension of a Field, rather than a Panel, however it can act as a panel when the separatePanel method is used. This is to allow more flexibility to use fields as part of an existing Panel.

Installation

Install the package in to a Laravel app that uses Nova via composer:

Usage

Basic Usage

Hiding the entire Panel based on a dependsOn function

Single dependsOn request for all fields within the panel

All of the Text Fields dependsOn requests will be sent as one request using the singleRequest method. This is useful for both reducing the number of requests on large forms and for more consistent UX as the fields are changed at the same time.

Batching dependsOn functionality for all contained fields

You can also batch dependsOn functionality for all fields within your Panel using the applyToFields method. For example if you need all fields to become readOnly. This can be overidden at the Field Level.

Note that the first parameter should be of type Field to ensure that the function can apply to all fields within your panel, regardless of type.

Separating the Panel

The fields in Nova Dependable Panel can be part of any other panel (default), or can be separated into another panel using the separatePanel method.

This panel will use the first argument to DependablePanel as its panel name.

Changing the fields in the Panel as a result of dependsOn

Rather than hiding/showing fields as a result of dependsOn, you can change the fields themselves using the fields method. Note that this functionality requires singleRequest to operate properly.

Note: If the fields added via the fields method also have dependsOn defined, and you wish those dependsOn mixins to be applied correctly when those fields are first mounted, you should include the fields that they depend upon in the panels dependsOn function.

In the example below if the "Readonly" checkbox is checked, and then the select option is changed to Option 1, in order for these fields to be readonly when mounted, you can see "readonly" needs to be included in the panels dependsOn function.

Known Issues

License

Nova Dependable Panel is open-sourced software licensed under the MIT license.


All versions of nova-dependable-panel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3|^8.0
laravel/nova Version ^4.0
nova-kit/nova-packages-tool Version ^1.0
formfeed-uk/nova-subfield-dependson Version ^2.0.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package formfeed-uk/nova-dependable-panel contains the following files

Loading the files please wait ....