Skip to content

vigour-io/brisky-focus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

brisky-focus

Build Status js-standard-style npm version Coverage Status

###example

const focusableMenu = {
  $: 'menu.items.$any',
  focusableMenuItem = {
    text: {
      $: 'title'
    },
    focus: {
      $: '$parent.$parent.focus' // define focus (usually defined on holder)
      autofocus: true // define if dom:focus is applied (defaults to true)
    }
  }
}

const state = {
  menu: {
    focus: '$root.menu.items.0',
    items: [
      { title: 'one item' },
      { title: 'two item' },
      { title: 'three item' }
    ]
  }
}

document.body.appendchild(render(carousel, state))

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •