Plugin bootstrap tag input example

Convert any input type text field to tags field. You can write tags and move focus out of the text area to convert the value in tags.

  
                                $pdocrud = new PDOCrud();
                                $pdocrud->formFields(array("membership_categories"));
                                $pdocrud->addPlugin("bootstrap-tag-input");//to add plugin      
                                $pdocrud->fieldAttributes("membership_categories", array("data-role"=>"tagsinput"));
                                $pdocrud->fieldCssClass("membership_categories", array("tagsinput"));// add css classes
                                echo $pdocrud->dbTable("library_membership")->render();
                                echo $pdocrud->loadPluginJsCode("bootstrap-tag-input",".tagsinput");//to add plugin call on .tagsinput class
                            

Plugin bootstrap tag input example - PDOCrud

Library membership

Showing 1 to 10 of 13 entries

# Membership id Full name Gender Email Phone Date issue Membership categories Membership is Decalaration Actions
1 1 uu 0 uu@g.com 656546 2016-08-09 asss,12345,wert,nepal,edge,59 gfdg fgd
2 2 dffvvzv 0 avc@gmail.com 43563563 1959-03-11 55325 2342 234242
3 3 0000-00-00 klass1
4 4 0000-00-00 test-membership
5 5 0000-00-00 test-membership,another
6 6 0000-00-00 test-membership,another,yetone,dksdf,asdfasdf
7 7 0000-00-00 test-membership,another,yetone,dksdf,asdfasdf
8 8 0000-00-00 test-membership,another,yetone,dksdf,asdfasdf
9 9 0000-00-00 test-something
10 10 0000-00-00 test-something
# Membership id Full name Gender Email Phone Date issue Membership categories Membership is Decalaration Actions