Skip to content

better use of event_callback #6

@samuelcolvin

Description

@samuelcolvin

use event_callback more, eg. when opening the enquiry modal.

Use case:

    socket('{{ site.socket_key }}', {
      mode: 'enquiry-modal',
      element: '#socket-enquiry-modal',
      router_mode: 'history',
      event_callback: function() {
        console.log('socket event callback')
        $('[name="client_email"]').each(function(){
          $(this).attr('placeholder', 'Email (Required)')
          $(this).attr('required', 'required')
        })
      }
    })

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions