Skip to content
This repository was archived by the owner on May 30, 2022. It is now read-only.

Commit

Permalink
docs(all): Updated docs using grunt-chalkboard v0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianlee44 committed Jan 10, 2014
1 parent 906f573 commit a34990f
Show file tree
Hide file tree
Showing 31 changed files with 73 additions and 16 deletions.
1 change: 1 addition & 0 deletions docs/directives/affix.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mac-affix
===
Fix the component at a certain position


### Parameters
**mac-affix-disabled**
Type: `Expr`
Expand Down
16 changes: 9 additions & 7 deletions docs/directives/autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ Autocomplete
===
A directive for providing suggestions while typing into the field


### Dependencies
- mac-menu


### Parameters
**ng-model**
Expand All @@ -30,21 +32,21 @@ Boolean value if autocomplete should be disabled
**mac-autocomplete-on-select**
Type: `Function`
Function called when user select on an item
- `selected` - {Object} The item selected
- `selected` - {Object} The item selected

**mac-autocomplete-on-success**
Type: `Function`
function called on success ajax request
- `data` - {Object} Data returned from the request
- `status` - {Number} The status code of the response
- `header` - {Object} Header of the response
- `data` - {Object} Data returned from the request
- `status` - {Number} The status code of the response
- `header` - {Object} Header of the response

**mac-autocomplete-on-error**
Type: `Function`
Function called on ajax request error
- `data` - {Object} Data returned from the request
- `status` - {Number} The status code of the response
- `header` - {Object} Header of the response
- `data` - {Object} Data returned from the request
- `status` - {Number} The status code of the response
- `header` - {Object} Header of the response

**mac-autocomplete-label**
Type: `String`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/cspinner.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Canvas Spinner
A directive for generating a canvas spinner
This spinner requires much less CPU/GPU resources than CSS spinner


### Parameters
**mac-cspinner-width**
Type: `Integer`
Expand Down
10 changes: 6 additions & 4 deletions docs/directives/datepicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Datepicker
===
A directive for creating a datepicker on text input using jquery ui


### Dependencies
- jQuery
- jQuery datepicker


### Parameters
**mac-datepicker-id**
Expand All @@ -20,14 +22,14 @@ Clearing model by setting it to null or '' will clear the input field
**mac-datepicker-on-select**
Type: `Function`
Function called before setting the value to the model
- `date` - {String} Selected date from the datepicker
- `instance` - {Object} Datepicker instance
- `date` - {String} Selected date from the datepicker
- `instance` - {Object} Datepicker instance

**mac-datepicker-on-close**
Type: `String`
Function called before closing datepicker
- `date` - {String} Selected date from the datepicker
- `instance` - {Object} Datepicker instance
- `date` - {String} Selected date from the datepicker
- `instance` - {Object} Datepicker instance

**mac-datepicker-append-text**
Type: `String`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/events/base.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Events
A directive for handling basic html events (e.g., blur, keyup, focus, etc.)
Currently MacGyver has blur, focus, keydown, keyup, mouseenter and mouseleave


### Parameters
**mac-blur**
Type: `Expression`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/events/keydown.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Keydown events
A directive for handling certain keys on keydown event
Currently MacGyver supports enter, escape, space, left, up, right and down


### Parameters
**mac-keydown-enter**
Type: `Expression`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/events/pause_typing.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Pause Typing
===
macPauseTyping directive allow user to specify custom behavior after user stops typing for more than (delay) milliseconds


### Parameters
**mac-pause-typing**
Type: `Expression`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/events/window_resize.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Windows Resize
===
Binding custom behavior on window resize event


### Parameters
**mac-window-resize**
Type: `Expression`
Expand Down
2 changes: 2 additions & 0 deletions docs/directives/file_upload.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ File upload
===
Directive for proxying jQuery file upload


### Dependencies
- jQuery
- jQuery file upload


### Parameters
**mac-upload-route**
Expand Down
1 change: 1 addition & 0 deletions docs/directives/focus_on_event.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mac-focus-on-event
===
Scroll window to the element and focus on the element


### Parameters
**mac-focus-on-event**
Type: `String`
Expand Down
5 changes: 3 additions & 2 deletions docs/directives/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@ Menu
===
A directive for creating a menu with multiple items


### Parameters
**mac-menu-items**
Type: `Expression`
List of items to display in the menu
Each item should have a `label` key as display text
Each item should have a `label` key as display text

**mac-menu-select**
Type: `Function`
Callback on select
- `index` - {Integer} Item index
- `index` - {Integer} Item index

**mac-menu-style**
Type: `Object`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/modal.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mac-modal (element)
Element directive to define the modal dialog. Modal content is transcluded into a
modal template


### Parameters
**mac-modal-keyboard**
Type: `Boolean`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/placeholder.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Placeholder
===
Dynamically fill out the placeholder text of input


### Parameters
**mac-placeholder**
Type: `String`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/scroll_spy.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ mac-scroll-spy
===
Element to spy scroll event on


### Parameters
**mac-scroll-spy-offset**
Type: `Integer`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/spinner.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Spinner
===
A directive for generating spinner


### Parameters
**mac-spinner-size**
Type: `Integer`
Expand Down
1 change: 1 addition & 0 deletions docs/directives/table/mac_columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Columns
Directive that keeps track of the widths of the columns in the table.
This directive is automatically added to any row whose cells use `mac-columns-width`.


### Dependencies
macTable, macTableSection, macTableRow

2 changes: 2 additions & 0 deletions docs/directives/table/table_cell.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ Cell Template
===
Directive for assigning cell templates to table columns


### Dependencies
macTable, macTableSection, macTableRow


### Parameters
**mac-cell-template**
Expand Down
1 change: 1 addition & 0 deletions docs/directives/table/table_row.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Table Row
===
Directive initializing a table row for cell templates to be registered under


### Dependencies
macTable, macTableSection

4 changes: 4 additions & 0 deletions docs/directives/table/table_section.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Table Section
Main directive for registering table sections. Can optionally have
macTableSectionModels, macTableSectionController, or macTableSectionBlankRow.


### Dependencies
macTable

Expand All @@ -13,6 +14,7 @@ Table Section Blank Row

Inserts a blank row with keys matching those of the tables columns.


### Dependencies
macTable, macTableSection

Expand All @@ -22,6 +24,7 @@ Table Section Models

Watches a models expression and loads them into the section


### Dependencies
macTable, macTableSection

Expand All @@ -31,6 +34,7 @@ Table Section Controller

Watches a controller expression and loads the controller into the section


### Dependencies
macTable, macTableSection

4 changes: 4 additions & 0 deletions docs/directives/table/table_section_selected_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ Table Section Selected Models
===
Creates two way binding between a selected models array


### Parameters
**mac-table-section-selected-models**
Type: `array`
A two-way bound array to see selected models and to select them



### Dependencies
macTable, macTableSection
Expand All @@ -18,11 +20,13 @@ Table Selectable

Gives element it is on a click event that selects the row it shares a scope with


### Parameters
**mac-table-selectable**
Type: `bool`
whether the current element is selectable



### Dependencies
macTable, macTableSection, macTableSectionSelectedModels
Expand Down
2 changes: 2 additions & 0 deletions docs/directives/table/table_view.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Table
===
Directive for displaying tabluar data


### Parameters
**mac-table-resizable-columns**
Type: `None`
Expand All @@ -12,4 +13,5 @@ Convenience param to add macResizableColumn and dependent directives to template
Type: `None`
Convenience param to add macReorderableColumn and dependent directives to template elements



9 changes: 6 additions & 3 deletions docs/directives/tag_autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Tag Autocomplete
===
A directive for generating tag input with autocomplete support on text input


### Dependencies
- mac-autocomplete
- mac-menu


### Parameters
**mac-tag-autocomplete-url**
Expand Down Expand Up @@ -51,7 +53,7 @@ If autocomplete is enabled or disabled (default false)
**mac-tag-autocomplete-on-enter**
Type: `Expr`
When autocomplete is disabled, this function is called on enter, Should return either string, object or boolean. If false, item is not added
- `item` - {String} User input
- `item` - {String} User input

**mac-tag-autocomplete-events**
Type: `String`
Expand All @@ -60,8 +62,9 @@ A CSV list of events to attach functions to
**mac-tag-autocomplete-on-**
Type: `Expr`
Function to be called when specified event is fired
- `event` - {Object} jQuery event
- `value` - {String} Value in the input text
- `event` - {Object} jQuery event
- `value` - {String} Value in the input text


**mac-tag-autocomplete-clear-input**
Type: `Event`
Expand Down
2 changes: 2 additions & 0 deletions docs/directives/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Time
===
A directive for creating a time input field


### Parameters
**mac-time-model**
Type: `String`
Expand All @@ -21,4 +22,5 @@ Enable or disable time input
Type: `String`
If model is undefined, use this as the starting value (default 12:00 PM)



1 change: 1 addition & 0 deletions docs/directives/tooltip.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Tooltip
===
Tooltip directive


### Parameters
**mac-tooltip**
Type: `String`
Expand Down
1 change: 1 addition & 0 deletions docs/filters/list.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ List
===
List filter. Use for converting arrays into a string


### Parameters
**list**
Type: `Array`
Expand Down
1 change: 1 addition & 0 deletions docs/filters/pluralize.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Pluralize
===
Pluralizes the given string. It's a simple proxy to the pluralize function on util.


### Parameters
**string**
Type: `String`
Expand Down
1 change: 1 addition & 0 deletions docs/filters/timestamp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Timestamp filter
Takes in a unix timestamp and turns it into a human-readable relative time string, like "5
minutes ago" or "just now".


### Parameters
**time**
Type: `Unix timestamp`
Expand Down
1 change: 1 addition & 0 deletions docs/filters/underscore.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ Underscore string
===
Proxy filter for calling underscore string function


### Parameters
**string**
Type: `String`
Expand Down
2 changes: 2 additions & 0 deletions docs/main.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ angular.element
Angular comes with jqLite, a tiny, API-compatible subset of jQuery. However, its
functionality is very limited and MacGyver extends jqLite to make sure MacGyver
components work properly.

Real jQuery will continue to take precedence over jqLite and all functions MacGyver extends.

MacGyver adds the following methods:
- [height()](http://api.jquery.com/height/) - Does not support set
- [width()](http://api.jquery.com/width/) - Does not support set
Expand Down
Loading

0 comments on commit a34990f

Please sign in to comment.