Skip to content

Commit

Permalink
fix(Dialog): fix Dialog actions and children
Browse files Browse the repository at this point in the history
  • Loading branch information
arlair committed Apr 15, 2016
1 parent 721ddfa commit d76ea4d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"dependencies": {
"@cycle/core": "^6.0.0",
"@cycle/isolate": "1.2.0",
"@eldarlabs/cycle-ui": "0.6.1",
"@eldarlabs/cycle-ui": "0.6.2",
"autoprefixer": "^6.3.4",
"classnames": "^2.2.3",
"cycle-snabbdom": "1.2.1",
Expand Down
13 changes: 8 additions & 5 deletions src/demo/kitchenSink/components/views/Dialogs.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Button, Card, CardTitle, CardActions, Dialog, ButtonFactory } from '@eldarlabs/cycle-ui';
import { Button, Card, CardTitle, CardText, Dialog } from '@eldarlabs/cycle-ui';
import { Observable as $ } from 'rx';
const { button, p } = require('cycle-snabbdom');
const { p } = require('cycle-snabbdom');
//import { CycleComponent } from '@eldarlabs/cycle-ui/helpers/cycleDomInterfaces';
import { Counter } from '../../../counter';

export function Dialogs(sources: any) {
const DOM = sources.DOM;
Expand Down Expand Up @@ -30,12 +29,16 @@ export function Dialogs(sources: any) {
return (
Card(sources, null, [
CardTitle(sources, { title: 'Dialogs (Work in progress)' }, [
CardActions(sources, null, [
CardText(sources, [
Button(sources, { className: 'showDialog', label: 'Show Modal Dialog',
raised: true }).DOM,
p('is active:' + isDialogActive),
Dialog({ title: 'Test Dialog', active: isDialogActive,
actions: [cancelButton.DOM, saveButton.DOM] }).DOM,
actions: [cancelButton.DOM, saveButton] }, [
p('This is a dialog'),
p('A dialog can have multiple children controls')
]
).DOM
]).DOM
]).DOM
]).DOM
Expand Down

0 comments on commit d76ea4d

Please sign in to comment.