W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗值獎勵
java.lang.Object
|---ohos.agp.components.Component
|---|---ohos.agp.components.Text
|---|---|---ohos.agp.components.Button
|---|---|---|---ohos.agp.components.AbsButton
|---|---|---|---|---ohos.agp.components.Switch
public class Switch
extends AbsButton
提供可以啟用或禁用的開關(guān)。
Since:
1
從類 ohos.agp.components.AbsButton 繼承的嵌套類/接口 |
---|
AbsButton.CheckedStateChangedListener |
從類 ohos.agp.components.Component 繼承的嵌套類/接口 |
---|
Component.BindStateChangedListener, Component.CanAcceptScrollListener, Component.ClickedListener, Component.ComponentStateChangedListener, Component.ContourRefreshedListener, Component.DefSpeechEventListener, Component.DoubleClickedListener, Component.DragFeedbackProvider, Component.DraggedListener, Component.DrawTask, Component.EditEventListener, Component.EstimateSizeListener, Component.EstimateSpec, Component.FadeEffectEnum, Component.FocusChangedListener, Component.ForwardHoverListener, Component.ForwardTouchListener, Component.GestureType, Component.HoverEventListener, Component.KeyEventListener, Component.LayoutDirection, Component.LayoutRefreshedListener, Component.LongClickedListener, Component.MeasureSpec, Component.MouseEventListener, Component.MousePointerStyleListener, Component.OnDragListener, Component.RotationEventListener, Component.ScaledListener, Component.ScrolledListener, Component.ShadowDevice, Component.ShadowMode, Component.ShadowSize, Component.SpeechEventListener, Component.TouchEventListener, Component.UnconsumedKeyEventListener, Component.VoiceEvent |
從類 ohos.agp.components.Text 繼承的嵌套類/接口 |
---|
Text.ConversionType, Text.EditorActionListener, Text.FontFamilyType, Text.TextColorObserver, Text.TextObserver, Text.TextSizeObserver, Text.TextSizeType, Text.TruncationMode |
從類 ohos.agp.components.Component 繼承的字段 |
---|
ACCESSIBILITY_ADAPTABLE, ACCESSIBILITY_DISABLE, ACCESSIBILITY_ENABLE, AXIS_X, AXIS_Y, CONTOUR_BACKGROUND, CONTOUR_BORDER, CONTOUR_PADDING_BORDER, DEFAULT_SCALE, DRAG_DOWN, DRAG_HORIZONTAL, DRAG_HORIZONTAL_VERTICAL, DRAG_LEFT, DRAG_RIGHT, DRAG_UP, DRAG_VERTICAL, EVENT_TYPE_COMPONENT_ACCESSIBILITY_FOCUSED, EVENT_TYPE_COMPONENT_ACCESSIBILITY_FOCUSED_CLEAR, EVENT_TYPE_COMPONENT_CLICKED, EVENT_TYPE_COMPONENT_FOCUSED, EVENT_TYPE_COMPONENT_LONG_CLICKED, EVENT_TYPE_COMPONENT_SCROLLED, EVENT_TYPE_COMPONENT_SELECTED, EVENT_TYPE_COMPONENT_TEXT_UPDATE, EVENT_TYPE_NOTICE, EVENT_TYPE_NOTIFICATION_STATE_UPDATE, EVENT_TYPE_TOAST_SHOW, EVENT_TYPE_WINDOW_STATE_UPDATE, FOCUS_ADAPTABLE, FOCUS_DISABLE, FOCUS_ENABLE, FOCUS_NEXT, FOCUS_PREVIOUS, FOCUS_SIDE_BOTTOM, FOCUS_SIDE_LEFT, FOCUS_SIDE_RIGHT, FOCUS_SIDE_TOP, HIDE, HORIZONTAL, ID_DEFAULT, INHERITED_MODE, INVISIBLE, mBackgroundElement, mCanvasForTaskOverContent, mCanvasForTaskUnderContent, mComponentParent, mContext, mDrawTaskOverContent, mDrawTaskUnderContent, mEstimateSizeListener, mForegroundElement, mForwardHoverListener, mHoverEventListener, mKeyEventListener, mMouseEventListener, mPosition, mRotationEventListener, mShadowElement, mUnconsumedKeyEventListener, OVAL_MODE, OVAL_SCROLL_BAR_MODE, POSITION_X_INDEX, POSITION_Y_INDEX, RECT_MODE, RECT_SCROLL_BAR_MODE, SCROLL_AUTO_STAGE, SCROLL_IDLE_STAGE, SCROLL_NORMAL_STAGE, UNSPECIFIED_SCROLL_BAR_MODE, VERTICAL, VISIBLE |
從類 ohos.agp.components.Text 繼承的字段 |
---|
AUTO_CURSOR_POSITION, AUTO_SCROLLING_FOREVER |
構(gòu)造函數(shù) | 描述 |
---|---|
Switch(Context context) | 默認構(gòu)造函數(shù)用于使用默認屬性集和樣式創(chuàng)建 Switch 實例。 |
Switch(Context context, AttrSet attrSet) | 用于在 XML 文件解析后使用指定的屬性集和默認樣式創(chuàng)建 Switch 實例的構(gòu)造函數(shù)。 |
Switch(Context context, AttrSet attrSet, String styleName) | 一個構(gòu)造函數(shù),用于在解析 XML 文件后使用指定的屬性集和指定的樣式創(chuàng)建 Switch 實例。 |
修飾符和類型 | 方法 | 描述 |
---|---|---|
String | getStateOffText() | 獲取處于禁用狀態(tài)的開關(guān)的顯示文本。 |
String | getStateOnText() | 獲取啟用狀態(tài)的開關(guān)的顯示文本。 |
Element | getThumbElement() | 獲取開關(guān)拇指的元素。 |
int | getThumbHeight() | 獲取開關(guān)中拇指的高度。 |
int | getThumbHorizontalPadding() | 獲取開關(guān)的水平填充。 |
int[] | getThumbPadding() | 獲取開關(guān)拇指上文本的水平和垂直填充。 |
int[] | getThumbSize() | 獲取開關(guān)拇指的高度和寬度。 |
int | getThumbVerticalPadding() | 獲取開關(guān)的垂直填充。 |
int | getThumbWidth() | 獲取開關(guān)中拇指的寬度。 |
Element | getTrackElement() | 獲取切換軌道的元素。 |
void | setStateOffText(String text) | 將開關(guān)的顯示文本設(shè)置為禁用狀態(tài)。 |
void | setStateOnText(String text) | 將開關(guān)的顯示文本設(shè)置為啟用狀態(tài)。 |
void | setThumbElement(Element element) | 設(shè)置一個元素來設(shè)置開關(guān)拇指的樣式。 |
void | setThumbHeight(int height) | 設(shè)置開關(guān)拇指的高度。 |
void | setThumbHorizontalPadding(int horizontalPadding) | 設(shè)置開關(guān)拇指上文本的水平填充。 |
void | setThumbPadding(int horizontalPadding, int verticalPadding) | 設(shè)置開關(guān)拇指的填充。 |
void | setThumbSize(int width, int height) | 設(shè)置開關(guān)拇指的大小,高度和寬度應(yīng)小于軌道 |
void | setThumbVerticalPadding(int verticalPadding) | 為開關(guān)拇指上的文本設(shè)置垂直填充。 |
void | setThumbWidth(int width) | 設(shè)置開關(guān)拇指的寬度。 |
void | setTrackElement(Element element) | 設(shè)置一個元素來設(shè)置開關(guān)軌道的樣式。 |
從類 ohos.agp.components.AbsButton 繼承的方法 |
---|
getButtonElement, getTextColorOff, getTextColorOn, isChecked, setButtonElement, setChecked, setCheckedStateChangedListener, setTextColorOff, setTextColorOn, toggle |
從類 ohos.agp.components.Component 繼承的方法 |
---|
addDrawTask, addDrawTask, addScrolledListener, announceAccessibility, arrange, bindCornerMark, callOnClick, canScroll, clearFocus, createAnimatorProperty, disableFadeEffect, dispatchRestoreState, dispatchSaveState, draw, enableCornerMark, enableFadeEffect, enableSaveState, enableScrollBar, estimateSize, executeDoubleClick, executeLongClick, findComponentById, findComponentHolderById, findFocus, findNextFocusableComponent, findRequestNextFocus, getAccessibility, getAccessibilityDescription, getAlpha, getAltitude, getBackgroundElement, getBaseLine, getBottom, getBoundaryFadeEffectBottomRate, getBoundaryFadeEffectLeftRate, getBoundaryFadeEffectRightRate, getBoundaryFadeEffectTopRate, getCenterZoomFactor, getCentralScrollMode, getClickedListener, getClipEnabled, getComponentDescription, getComponentMinSize, getComponentParent, getComponentPosition, getComponentSize, getComponentStateChangedListener, getComponentTreeObserver, getContentEnable, getContentPosition, getContentPositionX, getContentPositionY, getContext, getContour, getContourRefreshedListener, getCornerMark, getDragAcceptAngle, getDraggedListener, getEditEventListener, getEstimatedHeight, getEstimatedWidth, getFadeEffectColor, getFocusable, getFocusBorderEnable, getFocusBorderPadding, getFocusBorderRadius, getFocusBorderWidth, getForegroundElement, getForegroundGravity, getForwardHoverListener, getForwardTouchListener, getGesturePriority, getHeight, getHorizontalPadding, getHorizontalPosition, getHoverEventListener, getId, getKeyEventListener, getLayoutConfig, getLayoutDirection, getLayoutDirectionResolved, getLayoutRefreshedListener, getLeft, getLocationOnScreen, getMarginBottom, getMarginLeft, getMarginRight, getMargins, getMarginsLeftAndRight, getMarginsTopAndBottom, getMarginTop, getMatrix, getMinHeight, getMinWidth, getMode, getModeResolved, getMouseEventListener, getMousePointerStyleListener, getName, getPadding, getPaddingBottom, getPaddingEnd, getPaddingLeft, getPaddingRight, getPaddingStart, getPaddingTop, getPivot, getPivotX, getPivotY, getResourceManager, getRight, getRotation, getRotationEventListener, getRotationSensitivity, getScale, getScaledListener, getScaleX, getScaleY, getScrollbarBackgroundColor, getScrollbarColor, getScrollbarFadingDelay, getScrollbarFadingDuration, getScrollBarMode, getScrollbarRadius, getScrollbarRoundRect, getScrollbarStartAngle, getScrollbarSweepAngle, getScrollbarThickness, getScrollState, getScrollValue, getSelfVisibleRect, getShadowColor, getSpeechEventListener, getTag, getTop, getTouchEventListener, getTransitionSymbol, getTranslation, getTranslationX, getTranslationY, getTranslationZ, getUserNextFocus, getVerticalPadding, getVerticalPosition, getVisibility, getVisibleRectOnScreen, getWidth, getWindowVisibleRect, hasFocus, hasFocusedEffect, hasOverlaps, hideFocusBorder, informConfigurationChanged, invalidate, isBoundaryFadeEffectEnable, isBoundToWindow, isClickable, isClipToContourEnabled, isComponentDisplayed, isEnabled, isFadeEffected, isFocusable, isFocused, isIdentityMatrix, isLongClickOn, isPressed, isRtl, isSaveStateEnabled, isScrollbarFadingOn, isScrollBarOn, isScrollbarOverlapEnabled, isSelected, isSoundEnable, isTouchFocusable, isVibrationEffectEnabled, notifyAccessibility, onAttributeConfigChanged, onDrag, onRestoreState, onSaveState, performScale, playSound, postLayout, refreshContour, release, removeBindStateChangedListener, removeScrolledListener, requestFocus, requestForceForwardTouchEvent, restoreComponentTreeState, saveComponentTreeState, scrollBy, scrollTo, setAccessibility, setAccessibilityDescription, setAlpha, setAltitude, setBackground, setBindStateChangedListener, setBottom, setBoundaryFadeEffectEnable, setCanAcceptScrollListener, setCenterZoomFactor, setCentralScrollMode, setClickable, setClickedListener, setClipEnabled, setClipToContourEnabled, setComponentDescription, setComponentMinSize, setComponentPosition, setComponentPosition, setComponentSize, setComponentStateChangedListener, setContentEnable, setContentPosition, setContentPositionX, setContentPositionY, setContour, setContourRefreshedListener, setDoubleClickedListener, setDragAcceptAngle, setDraggedListener, setEditEventListener, setEnabled, setEstimatedSize, setEstimateSizeListener, setFadeEffectColor, setFocusable, setFocusBorderEnable, setFocusBorderPadding, setFocusBorderRadius, setFocusBorderRadius, setFocusBorderWidth, setFocusChangedListener, setFocusedEffect, setForeground, setForegroundGravity, setForwardHoverListener, setForwardTouchListener, setGesturePriority, setHeight, setHorizontalPadding, setHorizontalPosition, setHoverEventListener, setId, setKeyEventListener, setLayoutConfig, setLayoutDirection, setLayoutRefreshedListener, setLeft, setLongClickable, setLongClickedListener, setMarginBottom, setMarginLeft, setMarginRight, setMarginsLeftAndRight, setMarginsTopAndBottom, setMarginTop, setMinHeight, setMinWidth, setMode, setMouseEventListener, setMousePointerStyleListener, setName, setOnDragListener, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRelative, setPaddingRight, setPaddingTop, setPivot, setPivot, setPivotX, setPivotY, setPosition, setPositionX, setPositionY, setPressState, setRight, setRotation, setRotationEventListener, setRotationSensitivity, setScale, setScaledListener, setScaleX, setScaleY, setScrollbarBackgroundColor, setScrollbarColor, setScrollbarFadingDelay, setScrollbarFadingDuration, setScrollbarFadingEnabled, setScrollBarMode, setScrollbarOverlapEnabled, setScrollbarRadius, setScrollbarRoundRect, setScrollbarStartAngle, setScrollbarSweepAngle, setScrollbarThickness, setScrolledListener, setSelected, setShadowColor, setShadowStyle, setSoundEnable, setSpeechEventListener, setTag, setTop, setTouchEventListener, setTouchFocusable, setTransitionSymbol, setTranslation, setTranslationX, setTranslationY, setTranslationZ, setUnconsumedKeyEventListener, setUserNextFocus, setVerticalPadding, setVerticalPosition, setVibrationEffectEnabled, setVisibility, setWidth, showFocusBorder, simulateClick, simulateDrag, startDragAndDrop, subscribeVoiceEvents, unsubscribeVoiceEvents |
從類 java.lang.Object 繼承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
從類 ohos.agp.components.Text 繼承的方法 |
---|
addTextObserver, adjustCursorPosition, append, delete, delete, delete, getAdditionalLineSpacing, getAroundElements, getAroundElementsPadding, getAroundElementsRelative, getAutoFontSizeRule, getAutoFontSizeStep, getAutoScrollingCount, getAutoScrollingDuration, getBaseLine, getBottomElement, getBottonElement, getBoundingRect, getBubbleElement, getBubbleHeight, getBubbleWidth, getCombinedPaddingBottom, getCombinedPaddingEnd, getCombinedPaddingLeft, getCombinedPaddingRight, getCombinedPaddingStart, getCombinedPaddingTop, getCursorElement, getCustomInputMethodOptions, getEditableString, getEditingText, getEditorAction, getEditorActionText, getEndElement, getExtraInputData, getFadeEffectBoundaryWidth, getFont, getFontFamilyType, getFontFeatures, getFontVariations, getHint, getHintColor, getHyphenationStrategy, getInputFilters, getInputMethodLocales, getInputMethodOption, getJustifyStrategy, getLeftElement, getLetterSpacing, getLineBreakStrategy, getLineCount, getLineHeight, getLocales, getMaxAutoFontSize, getMaxTextHeight, getMaxTextLines, getMaxTextWidth, getMaxWidthInEms, getMinAutoFontSize, getMinTextHeight, getMinTextLines, getMinTextWidth, getMinWidthInEms, getNumOfFontHeight, getOffsetByCoordinates, getPaddingForText, getPrimaryLocale, getRichText, getRightElement, getSelectionColor, getSelectionEnd, getSelectionLeftBubbleElement, getSelectionLeftBubbleHeight, getSelectionLeftBubbleWidth, getSelectionRightBubbleElement, getSelectionRightBubbleHeight, getSelectionRightBubbleWidth, getSelectionStart, getStartElement, getText, getTextAlignment, getTextColor, getTextConversion, getTextDirectionStrategy, getTextHorizontalScale, getTextInputType, getTextShadowColor, getTextShadowOffsetX, getTextShadowOffsetY, getTextShadowRadius, getTextSize, getTextSize, getTextToBottomSpace, getTextToTopSpace, getTopElement, getTruncationMode, getUrls, insert, insert, isAdjustInputPanel, isAllUpperCase, isAutoFontSize, isAutoSelectEnabled, isEditable, isFallbackFontMetricsEnabled, isFocusedByTouch, isHyperLinkClickable, isInputMethodActive, isMultipleLine, isScrollable, isSoftInputVisibleOnFocus, isTextCursorVisible, isTextSelectable, length, lockEditingState, moveToPosition, onCustomInputMethodCommand, onLockEditingState, onRtlChanged, onTextEditorAction, onUnlockEditingState, removeTextObserver, setAdjustInputPanel, setAroundElements, setAroundElementsPadding, setAroundElementsRelative, setAutoCursorAdjustmentEnabled, setAutoFontSize, setAutoFontSize, setAutoFontSizeRule, setAutoFontSizeRule, setAutoScrollingCount, setAutoScrollingDuration, setAutoSelectEnabled, setBubbleElement, setBubbleElement, setBubbleHeight, setBubbleSize, setBubbleWidth, setCursorElement, setCursorElement, setCursorPosition, setCustomInputMethodOptions, setEditable, setEditorActionListener, setEditorActionText, setExtraInputData, setFadeEffectBoundaryWidth, setFallbackFontMetricsEnabled, setFont, setFontFamilyType, setFontFeatures, setFontVariations, setHint, setHint, setHintColor, setHyperLinkClickable, setHyperLinkColor, setHyphenationStrategy, setInputFilters, setInputMethodLocales, setInputMethodOption, setJustifyStrategy, setLeftBubbleHeight, setLeftBubbleSize, setLeftBubbleWidth, setLetterSpacing, setLineBreakStrategy, setLineHeight, setLines, setLineSpacing, setLocales, setMaxCharacters, setMaxTextHeight, setMaxTextLines, setMaxTextWidth, setMaxWidthInEms, setMinTextHeight, setMinTextLines, setMinTextWidth, setMinWidthInEms, setMultipleLine, setPaddingForText, setPrimaryLocale, setRichText, setRightBubbleHeight, setRightBubbleSize, setRightBubbleWidth, setScrollable, setSelection, setSelectionColor, setSelectionLeftBubbleElement, setSelectionLeftBubbleElement, setSelectionRightBubbleElement, setSelectionRightBubbleElement, setSoftInputVisibleOnFocus, setText, setText, setTextAlignment, setTextColor, setTextConversion, setTextCursorVisible, setTextDirectionStrategy, setTextHeight, setTextHorizontalScale, setTextInputType, setTextSelectable, setTextShadow, setTextSize, setTextSize, setTextWidth, setTextWidthInEms, setTruncationMode, startAutoScrolling, stopAutoScrolling, unlockEditingState |
public Switch(Context context)
默認構(gòu)造函數(shù)用于使用默認屬性集和樣式創(chuàng)建 Switch 實例。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
context | 指示應(yīng)用程序上下文。 |
public Switch(Context context, AttrSet attrSet)
用于在 XML 文件解析后使用指定的屬性集和默認樣式創(chuàng)建 Switch 實例的構(gòu)造函數(shù)。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
context | 指示應(yīng)用程序上下文。 |
attrSet | 指示要使用的屬性集。 |
public Switch(Context context, AttrSet attrSet, String styleName)
一個構(gòu)造函數(shù),用于在解析 XML 文件后使用指定的屬性集和指定的樣式創(chuàng)建 Switch 實例。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
context | 指示應(yīng)用程序上下文。 |
attrSet | 指示要使用的屬性集。 |
styleName | 指示要使用的樣式名稱。 |
public Element getTrackElement()
獲取切換軌道的元素。
返回:
返回軌道元素。
Since:
3
public Element getThumbElement()
獲取開關(guān)拇指的元素。
返回:
返回拇指元素。
Since:
3
public String getStateOnText()
獲取啟用狀態(tài)的開關(guān)的顯示文本。
返回:
返回啟用狀態(tài)下開關(guān)的顯示文本。
Since:
4
public String getStateOffText()
獲取處于禁用狀態(tài)的開關(guān)的顯示文本。
返回:
返回處于禁用狀態(tài)的開關(guān)的顯示文本。
Since:
4
public void setStateOnText(String text)
將開關(guān)的顯示文本設(shè)置為啟用狀態(tài)。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
text | 表示顯示的文本。 |
Since:
4
public void setStateOffText(String text)
將開關(guān)的顯示文本設(shè)置為禁用狀態(tài)。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
text | 表示顯示的文本。 |
Since:
4
public void setThumbPadding(int horizontalPadding, int verticalPadding)
設(shè)置開關(guān)拇指的填充。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
horizontalPadding | 指示拇指的水平填充。 |
verticalPadding | 指示拇指的垂直填充。 |
Throws:
Throw名稱 | Throw描述 |
---|---|
IllegalArgumentException | 如果 HorizontalPadding 或 verticalPadding 參數(shù)為負,則拋出此異常。 |
Since:
4
public int[] getThumbPadding()
獲取開關(guān)拇指上文本的水平和垂直填充。
返回:
返回水平和垂直填充。
Since:
4
public int getThumbHorizontalPadding()
獲取開關(guān)的水平填充。
返回:
返回開關(guān)的水平填充。
Since:
4
public void setThumbHorizontalPadding(int horizontalPadding)
設(shè)置開關(guān)拇指上文本的水平填充。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
horizontalPadding | 指示要設(shè)置的水平填充。 |
Since:
4
public int getThumbVerticalPadding()
獲取開關(guān)的垂直填充。
返回:
返回開關(guān)的垂直填充。
Since:
4
public void setThumbVerticalPadding(int verticalPadding)
為開關(guān)拇指上的文本設(shè)置垂直填充。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
verticalPadding | 指示要設(shè)置的垂直填充。 |
Since:
4
public void setThumbSize(int width, int height)
設(shè)置開關(guān)拇指的大小,高度和寬度應(yīng)小于軌道
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
width | 表示拇指的寬度 |
height | 表示拇指的高度 |
Throws:
Throw名稱 | Throw描述 |
---|---|
IllegalArgumentException | 如果寬度或高度參數(shù)為負數(shù),則引發(fā)此異常。 |
Since:
4
public int[] getThumbSize()
獲取開關(guān)拇指的高度和寬度。
返回:
返回高度和寬度。
Since:
4
public int getThumbWidth()
獲取開關(guān)中拇指的寬度。
返回:
返回拇指的寬度。
Since:
4
public void setThumbWidth(int width)
設(shè)置開關(guān)拇指的寬度。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
width | 表示要設(shè)置的寬度。 |
Since:
4
public int getThumbHeight()
獲取開關(guān)中拇指的高度。
返回:
返回拇指的高度。
Since:
4
public void setThumbHeight(int height)
設(shè)置開關(guān)拇指的高度。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
height | 表示要設(shè)置的高度。 |
Since:
4
public void setTrackElement(Element element)
設(shè)置一個元素來設(shè)置開關(guān)軌道的樣式。
如果您希望它根據(jù)開關(guān)狀態(tài)進行更改,請傳遞 StateElement 類型的元素。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
element | 表示軌道元素。 |
Since:
3
public void setThumbElement(Element element)
設(shè)置一個元素來設(shè)置開關(guān)拇指的樣式。
如果您希望它根據(jù)開關(guān)狀態(tài)進行更改,請傳遞 StateElement 類型的元素。
參數(shù):
參數(shù)名稱 | 參數(shù)描述 |
---|---|
element | 表示拇指元素。 |
Since:
3
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報電話:173-0602-2364|舉報郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: