2017 © Pedro Peláez
 

symfony1-plugin dm-chosen-select-jquery-plugin

dmChosenSelectJQueryPlugin - jQuery chosen select widget for Diem Extended

image

runopencode/dm-chosen-select-jquery-plugin

dmChosenSelectJQueryPlugin - jQuery chosen select widget for Diem Extended

  • Tuesday, June 25, 2013
  • by TheCelavi
  • Repository
  • 2 Watchers
  • 1 Stars
  • 0 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

dmChosenSelectJQueryPlugin for Diem Extended

Author: TheCelavi Version: 1.0 Stability: Stable
Date: June 24th, 2013 Courtesy of Run Open Code
License: Free for all, (*1)

dmChosenSelectJQueryPlugin for Diem Extended adds support for jQuery Chosen select plugin for Choice and Doctrine Choice form widget. Can be added to front and to admin, as well as for public pages., (*2)

Settings and customization:

Two widgets are available:, (*3)

  • sfWidgetFormDmChoiceChosen
  • sfWidgetFormDmDoctrineChoiceChosen

Use them as regular sfWidgetForm* widgets in your forms. They extend basic widgets, and the add several more options:, (*4)

  • no_results_text: No result text in search
  • theme: CSS file to use for styling the chosen select
  • max_selected_options: Maximum available options to select, if select is multiple
  • placeholder_text_multiple: Placeholder text for multiple choices
  • placeholder_text_single: Placeholder text for single choice

Regaring theme, see 'config/dm/config.yml':, (*5)

default:
    dmChosenSelectJQueryPlugin:
        themes:
            admin: dmChosenSelectJQueryPlugin.admin

Under themes key, you can define your theme and provide path to CSS file. In this example, the path to the CSS file is acquired via assets.yml setting, but you can provide a real path to CSS file (not recommended)., (*6)

In web dir you can find LESS file to help you start with styling., (*7)

Usage in admin/form generator:

To have these fields in admin, for your fields, add in schema.yml: extra: choice_chosen or extra: doctrine_choice_chosen., (*8)

Example:, (*9)

    Testobj:
      actAs:
        DmSortable:
      columns:
        title:              { type: string(255), notnull: true }
        is_active:          { type: boolean, notnull: true, default: false }
        keywords:           { type: enum, values: ['val 1', 'val 2'] notnull: true, extra: choice_chosen }
        related_obj_id:     { type: int, notnull: true, extra: doctrine_choice_chosen }

The Versions

25/06 2013

dev-master

9999999-dev http://www.runopencode.com/projects/diem/plugins/dmChosenSelectJQueryPlugin

dmChosenSelectJQueryPlugin - jQuery chosen select widget for Diem Extended

  Sources   Download

Free for all

The Requires

 

plugin widget form field diem diem extended dmchosenselectjqueryplugin