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

Commit

Permalink
docs(dialog): fix README
Browse files Browse the repository at this point in the history
  • Loading branch information
marknadig authored and pkozlowski-opensource committed Feb 12, 2013
1 parent 030901e commit 897c2e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ In fact we are fortunate enough to **benefit from the same testing infrastructur

## Contributing to the project

We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](bootstrap/blob/master/CONTRIBUTING.md) for the contribution guidelines.
We are always looking for the quality contributions! Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution guidelines.

### Development
#### Prepare your environment
Expand Down
6 changes: 3 additions & 3 deletions src/dialog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,19 +57,19 @@ Example:
};
}]);

#### `message(title, message, buttons)`
#### `messageBox(title, message, buttons)`

Opens a message box with the specified `title`, `message` ang a series of `buttons` can be provided, every button can specify:

* `label`: the label of the button
* `result`: the result used to invoke the close method of the dialog
* `cssClass`: optinal, the CSS class (e.g. btn-primary) to apply to the button
* `cssClass`: optional, the CSS class (e.g. btn-primary) to apply to the button

Example:

app.controller('MainCtrl', function($dialog, $scope) {
$scope.deleteItem = function(item){
var msgbox = $dialog.message('Delete Item', 'Are you sure?', [{label:'Yes, I'm sure, result: 'yes'},{label:'Nope', result: 'no'}]);
var msgbox = $dialog.messageBox('Delete Item', 'Are you sure?', [{label:'Yes, I'm sure, result: 'yes'},{label:'Nope', result: 'no'}]);
msgbox.open().then(function(result){
if(result === 'yes') {deleteItem(item);}
});
Expand Down

0 comments on commit 897c2e4

Please sign in to comment.