Collapse library with height animation
Add attributes data-toggle="collapse" and data-target="theTargetId" to the element that acts as collapse toggle
Eg:
<a href="#" data-toggle="collapse" data-target="collapseThis">Collapse</a>
| <?php | |
| namespace brilliance\cpxcustomfeatures\controllers; | |
| use Craft; | |
| use craft\elements\Asset; | |
| use craft\web\Controller; | |
| class FileDownloadController extends Controller | |
| { |
| <?php | |
| error_reporting(-1); | |
| ini_set('display_errors', 'On'); |