ptags Widget for using JQuery plugin "Pines Tags"

  1. Requirements
  2. Usage
  3. Resources

I just quickly wrote a widget for the JQuery plugin Pines Tags. Pines Tags is a beautiful and easy to use plugin. Even so, this widget is very easy to use.

The Pines Tags plugin is untouched.

Have a look at the Github Repo.

Requirements

Yii 1.1 or above.

Usage

Just extract in your extensions directory and use it like every other widget:

$this->widget('application.extensions.PTags.PTags',array(
    'id'=>'die_hard',
    'value'=>'action,bruce fucking willis,awesome,explosions,dead terrorists',
    'options'=>array(
        'editable'=>false,
        'remover'=>false
    )
));

value are the tags seperated by delimiter(standard: ",") "hardcoded" into the value of the input tag. You can leave it empty and use the tags option if you want to submit an array.

Options are the same as pines tags offers, but without the _ptags__-prefix:

$options=array(
  	'tags' => array(),
		'current_text' => true,
		'delimiter' => ",",
		'trim_tags' => true,
		'show_box' => false,
		'input_box' => true,
		'remover' => true,
		'editable' => true,
		'sortable' => false,
		); 

Resources

4 0
9 followers
374 downloads
Yii Version: 1.1
License: (not set)
Category: User Interface
Developed by: Yerlt
Created on: Dec 31, 2012
Last updated: 11 years ago

Downloads

show all

Related Extensions