diff --git a/demo/src/app/components/+alerts/alerts-section.list.ts b/demo/src/app/components/+alerts/alerts-section.list.ts index 431e6b032d..38e0ca80d6 100644 --- a/demo/src/app/components/+alerts/alerts-section.list.ts +++ b/demo/src/app/components/+alerts/alerts-section.list.ts @@ -39,8 +39,7 @@ export const demoComponentContent: ContentSection[] = [ description: `
Alerts are available for any length of text, as well as an optional dismiss
button. For proper styling, use one of the four required
contextual classes (e.g., .alert-success
). For inline
- dismissal, use the dismiss
- property
.
dismissible
property.`,
component: require('!!raw-loader?lang=typescript!./demos/basic/basic'),
html: require('!!raw-loader?lang=markup!./demos/basic/basic.html'),
outlet: DemoAlertBasicComponent
diff --git a/demo/src/app/components/+collapse/collapse-section.list.ts b/demo/src/app/components/+collapse/collapse-section.list.ts
index 87d73a3ccf..bbd39daa3a 100644
--- a/demo/src/app/components/+collapse/collapse-section.list.ts
+++ b/demo/src/app/components/+collapse/collapse-section.list.ts
@@ -1,5 +1,6 @@
import { CollapseDemoComponent } from './demos/basic/basic';
import { ToggleManualDemoComponent } from './demos/toggle-manual/toggle-manual';
+import { CollapseDemoEventsComponent } from './demos/events/events';
import { ContentSection } from '../../docs/models/content-section.model';
import { DemoTopSectionComponent } from '../../docs/demo-section-components/demo-top-section/index';
@@ -30,6 +31,15 @@ export const demoComponentContent: ContentSection[] = [
html: require('!!raw-loader?lang=markup!./demos/basic/basic.html'),
outlet: CollapseDemoComponent
},
+ {
+ title: 'Events',
+ anchor: 'events',
+ component: require('!!raw-loader?lang=typescript!./demos/events/events'),
+ html: require('!!raw-loader?lang=markup!./demos/events/events.html'),
+ description: `Collapse directive exposes 2 events: collapsed
, that fires when a content was hidden,
+ and expanded
, that fires when a content was shown`,
+ outlet: CollapseDemoEventsComponent
+ },
{
title: 'Manual toggle',
anchor: 'manual-toggle',
diff --git a/demo/src/app/components/+collapse/demos/basic/basic.html b/demo/src/app/components/+collapse/demos/basic/basic.html
index fc68006f1a..924540b4c3 100644
--- a/demo/src/app/components/+collapse/demos/basic/basic.html
+++ b/demo/src/app/components/+collapse/demos/basic/basic.html
@@ -2,9 +2,6 @@
(click)="isCollapsed = !isCollapsed">Toggle collapse
Event: {{message}}+
If you want to disable datepicker set isDisabled
property to true
If you want to disable datepicker's or daterangepicker's content set isDisabled
property to true
bsValue property sets initial state in this example
+bsValue
property sets initial state in this example
ngModel property sets two-way data binding in this example
+ngModel
property sets two-way data binding in this example
Indicates whether datepicker is enabled or not
\n" + "description": "Indicates whether datepicker's content is enabled or not
\n" }, { "name": "isOpen", @@ -845,7 +845,7 @@ export const ngdoc: any = { { "name": "isDisabled", "type": "boolean", - "description": "Indicates whether daterangepicker is enabled or not
\n" + "description": "Indicates whether daterangepicker's content is enabled or not
\n" }, { "name": "isOpen", diff --git a/src/datepicker/bs-datepicker.component.ts b/src/datepicker/bs-datepicker.component.ts index 0b96ff77c1..b4ccb1a88f 100644 --- a/src/datepicker/bs-datepicker.component.ts +++ b/src/datepicker/bs-datepicker.component.ts @@ -77,7 +77,7 @@ export class BsDatepickerDirective implements OnInit, OnDestroy, OnChanges { */ @Input() bsConfig: Partial