2017 © Pedro Peláez
 

library backbone-modal-view

Add on a button a Backbone Modal View with a list for WordPress

image

wpbp/backbone-modal-view

Add on a button a Backbone Modal View with a list for WordPress

  • Friday, March 31, 2017
  • by Mte90
  • Repository
  • 2 Watchers
  • 3 Stars
  • 117 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 11 % Grown

The README.md

Backbone-Modal-View

License Downloads, (*1)

Add on a button a Backbone Modal View with a list, (*2)

What?

Do you want a modal with search included withoout develop in Javascript?
This code is very simple, is generated a button that you can print or return where you prefer that will open a modal view.
You have only to define the output of the list (HTML) and the AJAX call where save the element checked.
Check the code example and try it to understand how can save so much your precious time!, (*3)

The example code in the class, save the checked element as a string separated by ', ' in an user field., (*4)

Example

Screenshot, (*5)

new BB_Modal_View( array(
            'id' => 'test', // ID of the modal view
            'hook' => 'admin_notices', // Where return or print the button
            'input' => 'checkbox', // Or radio
            'label' => __( 'Open Modal' ), // Button text
            'data' => array( 'rand' => rand() ), // Array of custom datas
            'ajax' => array( $this, 'ajax_posts' ), // Ajax function for the list to show on the modal
            'ajax_on_select' => array( $this, 'ajax_posts_selected' ), // Ajax function to execute on Select button
            'echo_button' => true // Do you want echo the button in the hook chosen or only return?
        ));

The Versions

31/03 2017

dev-master

9999999-dev https://github.com/WPBP/Backbone-Modal-View

Add on a button a Backbone Modal View with a list for WordPress

  Sources   Download

GPL-3.0

wordpress backbone

31/03 2017

1.0.2

1.0.2.0 https://github.com/WPBP/Backbone-Modal-View

Add on a button a Backbone Modal View with a list for WordPress

  Sources   Download

GPL-3.0

wordpress backbone

17/03 2017

1.0.1

1.0.1.0 https://github.com/WPBP/Backbone-Modal-View

Add on a button a Backbone Modal View with a list for WordPress

  Sources   Download

GPL-3.0

wordpress backbone

13/02 2017

1.0.0

1.0.0.0 https://github.com/WPBP/Backbone-Modal-View

Add on a button a Backbone Modal View with a list for WordPress

  Sources   Download

GPL-3.0

wordpress backbone