From 76854a2634cc246a98830258f59f839e73b85843 Mon Sep 17 00:00:00 2001 From: lostship <418181589@qq.com> Date: Mon, 9 Mar 2020 07:13:10 +0800 Subject: [PATCH] Fixed typo in docs (#2586) * Fixed error in cards.md card tools: data-widget -> data-card-widget * Fixed typo in card-widget.md collapseTrigger's default value: [data-card-widget="remove"] -> [data-card-widget="collapse"] removeTrigger's default value: [data-card-widget="collapse"] -> [data-card-widget="remove"] --- docs/components/cards.md | 8 ++++---- docs/javascript/card-widget.md | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/components/cards.md b/docs/components/cards.md index 3a05e9be1..bac251605 100644 --- a/docs/components/cards.md +++ b/docs/components/cards.md @@ -510,7 +510,7 @@ You can change the style of the card by adding any of the contextual classes. {: .text-bold .text-dark .mt-5} Cards can contain tools to deploy a specific event or provide simple info. The following examples makes use of multiple AdminLTE components within the header of the card. -AdminLTE data-widget attribute provides cards with the ability to collapse or be removed. The buttons are placed in the card-tools which is placed in the card-header. +AdminLTE data-card-widget attribute provides cards with the ability to collapse or be removed. The buttons are placed in the card-tools which is placed in the card-header. ```html
@@ -519,11 +519,11 @@ AdminLTE data-widget attribute provides cards with the ability to collapse or be
- + - + - +
diff --git a/docs/javascript/card-widget.md b/docs/javascript/card-widget.md index 47022fa85..ebf767710 100644 --- a/docs/javascript/card-widget.md +++ b/docs/javascript/card-widget.md @@ -149,8 +149,8 @@ $('#my-card').CardWidget(options) | Name | Type | Default | Description |-|-|-|- |animationSpeed | Number | 300 | Speed of slide down/up animation in milliseconds. -|collapseTrigger | String | `[data-card-widget="remove"]` | jQuery selector to the element responsible for collapsing the box. -|removeTrigger | String | `[data-card-widget="collapse"]` | jQuery selector to the element responsible for removing the box. +|collapseTrigger | String | `[data-card-widget="collapse"]` | jQuery selector to the element responsible for collapsing the box. +|removeTrigger | String | `[data-card-widget="remove"]` | jQuery selector to the element responsible for removing the box. |maximizeTrigger | String | `[data-card-widget="maximize"]` | jQuery selector to the element responsible for maximizing the box. {: .table .table-bordered .bg-light}