fix shortcodes for scmsv4
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Card, TextField } from "./components/index.js";
|
||||
import { Card, TextField, Label } from "./components.js";
|
||||
|
||||
const SliderShortcode = {
|
||||
label: "Bilderkarussell",
|
||||
@ -34,27 +34,31 @@ const SliderShortcode = {
|
||||
);
|
||||
|
||||
return Card([
|
||||
TextField({
|
||||
label: "Bilderkarussell",
|
||||
value: dir,
|
||||
onChange: (event) => {
|
||||
onChange({ dir: event.target.value });
|
||||
},
|
||||
}),
|
||||
Label("Bilderkarussell"),
|
||||
h(
|
||||
"span",
|
||||
{
|
||||
key: "slider-button",
|
||||
className: "CMS_WidgetDateTime_NowButton_root",
|
||||
},
|
||||
h(
|
||||
"button",
|
||||
{
|
||||
type: "button",
|
||||
onClick: handleOpenMediaLibrary,
|
||||
className: "CMS_Button_root CMS_Button_outlined-primary",
|
||||
{ className: "CMS_WidgetDateTime_inputs" },
|
||||
TextField({
|
||||
value: dir,
|
||||
onChange: (event) => {
|
||||
onChange({ dir: event.target.value });
|
||||
},
|
||||
"wählen"
|
||||
}),
|
||||
h(
|
||||
"span",
|
||||
{
|
||||
key: "slider-button",
|
||||
className: "CMS_WidgetDateTime_NowButton_root",
|
||||
},
|
||||
h(
|
||||
"button",
|
||||
{
|
||||
type: "button",
|
||||
onClick: handleOpenMediaLibrary,
|
||||
className: "CMS_Button_root CMS_Button_outlined-primary",
|
||||
},
|
||||
"wählen"
|
||||
)
|
||||
)
|
||||
),
|
||||
]);
|
||||
|
Reference in New Issue
Block a user