CheckBox():hasDefaultValue()
تحقّق مما إذا كان مربع الاختيار قد أُنشئ بإجابة افتراضية.
التوقيع
hasDefaultValue(): boolean
القيمة المعادة
boolean - true عندما تُمرَّر قيمة افتراضية إلى CheckBox(id, text, defaultChecked).
أمثلة
local box = CheckBox(1, "Remember me")
if not box:hasDefaultValue() then
box = CheckBox(1, "Remember me", false)
end
Dialog:add(box)