PluginProbe ʕ •ᴥ•ʔ
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets / 4.0.5
Widget Options – Advanced Conditional Visibility for Gutenberg Blocks & Classic Widgets v4.0.5
4.2.5 4.2.4 trunk 3.7.10 3.7.11 3.7.12 3.7.13 3.7.14 3.7.2 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8 3.8.1 3.8.10 3.8.2 3.8.3 3.8.4 3.8.5 3.8.6 3.8.7 3.8.8 3.8.9 3.8.9.1 3.9.0 3.9.1 3.9.2 3.9.3 3.9.4 3.9.5 3.9.6 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.5.1 4.0.6 4.0.6.1 4.0.7 4.0.8 4.0.9 4.1.0 4.1.1 4.1.2 4.1.3 4.2.0 4.2.1 4.2.2 4.2.3
widget-options / includes / widgets / gutenberg / src / attributes / components / widgetopts-panel.js
widget-options / includes / widgets / gutenberg / src / attributes / components Last commit date
option-tabs 2 years ago widgetopts-panel.js 2 years ago widgetopts-tab.js 2 years ago
widgetopts-panel.js
52 lines
1 import { TabPanel } from "@wordpress/components";
2 import ColumsTabPanel from "./option-tabs/columns";
3 import AlignmentTabPanel from "./option-tabs/alignment";
4 import RolesTabPanel from "./option-tabs/roles";
5 import VisibilityTabPanel from "./option-tabs/visibility";
6 import DevicesTabPanel from "./option-tabs/devices";
7 import DatesTabPanel from "./option-tabs/days-dates";
8 import StylingTabPanel from "./option-tabs/styling";
9 import SettingsTabPanel from "./option-tabs/settings";
10 import AnimationTabPanel from "./option-tabs/animation";
11 import BehaviorTabPanel from "./option-tabs/behavior";
12
13 const onSelect = (tabName) => {};
14
15 const WidgetOptionsPanel = (props) => {
16 const tabName = props.tabName;
17
18 const checkActiveTab = () => {
19 let activeTab =
20 tabName == "columns" ? (
21 <ColumsTabPanel {...props} />
22 ) : tabName == "alignment" ? (
23 <AlignmentTabPanel {...props} />
24 ) : tabName == "role" ? (
25 <RolesTabPanel {...props} />
26 ) : tabName == "visibility" ? (
27 <VisibilityTabPanel {...props} />
28 ) : tabName == "devices" ? (
29 <DevicesTabPanel {...props} />
30 ) : tabName == "dates" ? (
31 <DatesTabPanel {...props} />
32 ) : tabName == "styling" ? (
33 <StylingTabPanel {...props} />
34 ) : tabName == "logic" ? (
35 <SettingsTabPanel {...props} />
36 ) : tabName == "animation" ? (
37 <AnimationTabPanel {...props} />
38 ) : tabName == "behavior" ? (
39 <BehaviorTabPanel {...props} />
40 ) : (
41 <div>
42 <h3>{props.tabName} Loading...</h3>
43 </div>
44 );
45 return activeTab;
46 };
47
48 return checkActiveTab();
49 };
50
51 export default WidgetOptionsPanel;
52