Closed celibol closed 3 years ago
You need to create your own dialog, put it in a component, and open it with DialogManager.openFromComponent
.
If you have idea of a better API, I'm listening.
Have a nice day
function openFromComponent(comp)
Comp is ITEM or COMPONENT etc...
Its true?
comp
is expected to be a Component
Component {
id: _editComponent
Qaterial.TextField{
id: _fiyat
width: parent.width
Layout.fillWidth: true
enabled: true
title: "Fiyatı"
placeholderText: "Ürün Fiyatını Girin"
validator: DoubleValidator{notation: DoubleValidator.StandardNotation}
leadingIconInline: true
text: ""
inputMethodHints: Qt.ImhSensitiveData
trailingContent: Qaterial.TextFieldButtonContainer{
Qaterial.TextFieldClearButton {}
}
} // Fiyat
}
function editLine(){ Qaterial.DialogManager.openFromComponent(_editComponent) } function menuClicked(ID){ switch(ID){ case 4: editLine(); break; // Edit } }
.....
No any eror
But dont work
WOWWWW
It's working
How to 2 line TextField with dialogManager??
For Ex:
First Line NAME field Second Line SURNAME field
How to read with DİalogManager??