devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
53 lines (52 loc) • 1.71 kB
JavaScript
/**
* DevExtreme (esm/renovation/ui/scroll_view/common/base_scrollable_props.js)
* Version: 23.2.6
* Build date: Wed May 01 2024
*
* Copyright (c) 2012 - 2024 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import {
touch
} from "../../../../core/utils/support";
import {
getDefaultBounceEnabled,
isDesktop
} from "../utils/get_default_option_value";
import {
current,
isMaterial
} from "../../../../ui/themes";
import messageLocalization from "../../../../localization/message";
export var BaseScrollableProps = {
aria: Object.freeze({}),
addWidgetClass: false,
disabled: false,
visible: true,
classes: "",
direction: "vertical",
get bounceEnabled() {
return getDefaultBounceEnabled()
},
get scrollByContent() {
return isDesktop() ? touch : true
},
pullDownEnabled: false,
reachBottomEnabled: false,
forceGeneratePockets: false,
needScrollViewContentWrapper: false,
needRenderScrollbars: true,
refreshStrategy: "simulated",
get pullingDownText() {
return isMaterial(current()) ? "" : messageLocalization.format("dxScrollView-pullingDownText")
},
get pulledDownText() {
return isMaterial(current()) ? "" : messageLocalization.format("dxScrollView-pulledDownText")
},
get refreshingText() {
return isMaterial(current()) ? "" : messageLocalization.format("dxScrollView-refreshingText")
},
get reachBottomText() {
return isMaterial(current()) ? "" : messageLocalization.format("dxScrollView-reachBottomText")
}
};