Uname: Linux webm016.cluster127.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Software: Apache
PHP version: 7.4.33 [ PHP INFO ] PHP os: Linux
Server Ip: 54.36.31.145
Your Ip: 216.73.216.182
User: homesquasz (91404) | Group: users (100)
Safe Mode: OFF
Disable Function:
_dyuweyrj4,_dyuweyrj4r,dl

name : methods.jade
.bs-docs-header
  .container
    h1 Methods

.container
  p In #{title}, every option is also a method.
  p If the second parameter is omitted, the method returns the current value.
  p You can invoke methods as follows:
  pre: code $('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);

  h2 Additional Methods

  table.table.table-bordered.table-striped.table-responsive
    thead
      tr
        th Name
        th Description
    tbody
      tr
        td toggleState
        td Toggle the switch state
      tr
        td toggleAnimate
        td Toggle the animate option
      tr
        td toggleDisabled
        td Toggle the disabled state
      tr
        td toggleReadonly
        td Toggle the readonly state
      tr
        td toggleIndeterminate
        td Toggle the indeterminate state
      tr
        td toggleInverse
        td Toggle the inverse option
      tr
        td destroy
        td Destroy the instance of #{title}

  h2 Special Behaviours

  ul
    li The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.
    li The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.
    li The method <code>wrapperClass</code> can accept a falsy value as second parameter. If so, it resets the class to its default.
© 2026 GrazzMean