Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

refactor(tabs): Change syntax, add features #287

Closed
wants to merge 1 commit into from
Closed

Commits on May 9, 2013

  1. feat(tabs): Change directive name, add features

    * Rename 'tabs' directive to 'tabset', and 'pane' directive to 'tab'.
     The new syntax is more intuitive; The word pane does not obviously
     represent a subset of a tab group. (Closes #186)
    * Add 'tab-heading' directive, which is a child of a 'tab'. Allows
    HTML in tab headings. (Closes #124)
    * Add option for a 'select' attribute callback when a tab is selected.
     (Closes #141)
    * Tabs transclude to title elements instead of content elements. Now the
     ordering of tab titles is always correct. (Closes #153)
    
    BREAKING CHANGE: The 'tabs' directive has been renamed to 'tabset', and
     the 'pane' directive has been renamed to 'tab'.
    
        To migrate your code, follow the example below.
    
        Before:
    
        <tabs>
          <pane heading="one">
            First Content
          </pane>
          <pane ng-repeat="apple in basket" heading="{{apple.heading}}">
            {{apple.content}}
          </pane>
        </tabs>
    
        After:
    
        <tabset>
          <tab heading="one">
            First Content
          </tab>
          <tab ng-repeat="apple in basket" heading="{{apple.heading}}">
            {{apple.content}}
          </tab>
        </tabset>
    ajoslin committed May 9, 2013
    Configuration menu
    Copy the full SHA
    bfe20e9 View commit details
    Browse the repository at this point in the history