Skip to content

Commit 24d6057

Browse files
authored
add delay property (#1126)
1 parent e93056e commit 24d6057

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

examples/official-site/sqlpage/migrations/34_carousel.sql

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ VALUES
7878
TRUE,
7979
TRUE
8080
),
81+
(
82+
'carousel',
83+
'delay',
84+
'Specify the delay, in milliseconds, between two images.',
85+
'INTEGER',
86+
TRUE,
87+
TRUE
88+
),
8189
(
8290
'carousel',
8391
'image',

sqlpage/templates/carousel.handlebars

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<div class="subheader">{{title}}</div>
66
</div>
77
{{/if}}
8-
<div id="_sqlpage_carousel_{{@component_index}}" class="carousel slide{{#if fade}} carousel-fade{{/if}}" {{#if auto}}data-bs-ride="carousel"{{/if}}>
8+
<div id="_sqlpage_carousel_{{@component_index}}" class="carousel slide{{#if fade}} carousel-fade{{/if}}" {{#if auto}}data-bs-ride="carousel"{{/if}} {{#if delay}}data-bs-interval="{{delay}}"{{/if}}>
99
<div class="carousel-indicators{{#if indicators}} carousel-indicators-{{indicators}}{{/if}}{{#if vertical}} carousel-indicators-vertical{{/if}}">
1010
{{#each_row}}
1111
<button type="button" data-bs-target="#_sqlpage_carousel_{{@../component_index}}" data-bs-slide-to="{{@row_index}}" {{#if (eq @row_index 0)}}class="active"{{/if}}></button>

0 commit comments

Comments
 (0)