Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions assets/carousel/frontblocks-advanced-option.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ function addCustomCarouselPanel(BlockEdit) {
frblResponsiveToView = _props$attributes$frb5 === void 0 ? '1' : _props$attributes$frb5,
_props$attributes$frb6 = _props$attributes.frblAutoplay,
frblAutoplay = _props$attributes$frb6 === void 0 ? '' : _props$attributes$frb6,
_props$attributes$frbGap = _props$attributes.frblGap,
frblGap = _props$attributes$frbGap === void 0 ? '20' : _props$attributes$frbGap,
_props$attributes$frb7 = _props$attributes.frblButtons,
frblButtons = _props$attributes$frb7 === void 0 ? 'arrows' : _props$attributes$frb7,
_props$attributes$frb8 = _props$attributes.frblRewind,
Expand Down Expand Up @@ -123,6 +125,15 @@ function addCustomCarouselPanel(BlockEdit) {
frblAutoplay: value
});
}
}), /*#__PURE__*/React.createElement(TextControl, {
label: __('Gap (px)', 'frontblocks'),
value: frblGap,
onChange: function onChange(value) {
return props.setAttributes({
frblGap: value
});
},
help: __('Space between slides in pixels. Leave empty for 20.', 'frontblocks')
}), frblGridOption === 'slider' && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ToggleControl, {
label: __('Rewind', 'frontblocks'),
checked: frblRewind,
Expand Down
7 changes: 7 additions & 0 deletions assets/carousel/frontblocks-advanced-option.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ function addCustomCarouselPanel(BlockEdit) {
frblTabletToView = '2',
frblResponsiveToView = '1',
frblAutoplay = '',
frblGap = '20',
frblButtons = 'arrows',
frblRewind = true,
frblButtonColor,
Expand Down Expand Up @@ -97,6 +98,12 @@ function addCustomCarouselPanel(BlockEdit) {
value={frblAutoplay}
onChange={(value) => props.setAttributes({ frblAutoplay: value })}
/>
<TextControl
label={__('Gap (px)', 'frontblocks')}
value={frblGap}
onChange={(value) => props.setAttributes({ frblGap: value })}
help={__('Space between slides in pixels. Leave empty for 20.', 'frontblocks')}
/>
{frblGridOption === 'slider' && (
<>
<ToggleControl
Expand Down
Loading