added code generation for videoplayer and timepicker

This commit is contained in:
paul
2024-09-28 17:49:54 +05:30
parent 9867352e43
commit 75dc3d7ae2
4 changed files with 111 additions and 15 deletions

View File

@@ -99,7 +99,6 @@ const CanvasToolBar = memo(({ isOpen, widgetType, attrs = {} }) => {
const renderUploadDropDown = (val, filter) => {
let uploadOptions = [...uploadItems]
if (filter){
@@ -115,6 +114,8 @@ const CanvasToolBar = memo(({ isOpen, widgetType, attrs = {} }) => {
placeholder="select content"
showSearch
className="tw-w-full"
value={val.value}
onChange={(value) => handleChange(value, val.onChange)}
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
@@ -283,7 +284,7 @@ const CanvasToolBar = memo(({ isOpen, widgetType, attrs = {} }) => {
}
{
val.tool === Tools.UPLOADED_LIST && (
renderUploadDropDown(val.value, val?.toolProps?.filterOptions || null)
renderUploadDropDown(val, val?.toolProps?.filterOptions || null)
)
}