Search
 
SCRIPT & CODE EXAMPLE
 

PHP

MForm Bild Attribute

<?php
// init mform
$mform = MForm::factory()
    // add fieldset area
    ->addFieldsetArea('System Elements with Parameters', MForm::factory()
        // use media field method with parameter property
        ->addMediaField(1, ['types'=>'png', 'preview'=>1, 'category'=>2, 'label'=>'Image'])
        // use set parameter method
        ->addMediaField(2)
            ->setLabel('Image')
            ->setParameter('preview', 1)
            ->setParameter('category', 2)
            ->setParameter('type', 'png')
        // use set parameters method
        ->addMediaField(3)
            ->setLabel('Image')
            ->setParameters(['types'=>'png', 'preview'=>1, 'category'=>2])
        // use media list method with parameter property
        ->addMedialistField(1, ['types'=>'gif,jpg', 'preview'=>1, 'category'=>4, 'label'=>'Image list'])
        // use set parameters for link field
        ->addLinkField(1)
            ->setParameters(['label'=>'Link', 'category'=>3])
        // and for linklist field
        ->addLinklistField(1, ['label'=>'Link list'])
            ->setParameter('category', 2)
    );
// parse form
echo $mform->show();
Comment

PREVIOUS NEXT
Code Example
Php :: bitnami wp user pass change 
Php :: Gsuite integration in Laravel PHP 
Php :: hou to fill value in input box using php 
Php :: how to click anchor tag in selenium in php 
Php :: composer suggests 
Php :: Ajouter un texte par défaut sur toutes vos publications WordPress 
Php :: execcommand insert video 
Php :: returning two yajra datatable using single method on the sam view laravel 
Php :: customly add reviews from code site reviews wp 
Php :: -inurl:(htm/html/php/pls/txt) intitle:index.of "last modified" (mp4/wma/aac/avi) 
Php :: replace class 
Php :: hook into admin add order item / product on add/submit 
Php :: https://www.codegrepper.com/documentation.php 
Php :: show limited words from the_content php 
Php :: woo can not change products perpage in shop page 
Php :: how to make text bigger in php file 
Php :: strrev 
Php :: download xampp php 5.3 for windows 7 64 bit 
Php :: php check if variable is true or false 
Php :: Ajuster la taille par défaut pour le contenu intégré 
Php :: search highlighting 
Php :: laravel form collective add asterisk 
Php :: does grepper use PHP 
Php :: Modificar el pie de página del panel de administración de WordPress 
Php :: php get current datetime in us chicago 
Php :: When I try to run my code in chrome, i see the code that I have made in phpstorm and not the function that it has to do 
Php :: Required parameter follows optional parameter (500 Internal Server Error) php 
Php :: old codestar gallery 
Php :: bin2hex (PHP 4, PHP 5, PHP 7, PHP 8) 
Php :: set session expire time in php 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =