Can I remove the label that appears at the top of the inline editor?
Can I remove the label that appears at the top of the inline editor?
chita
Posts: 33Questions: 12Answers: 2
fields: [
{ name: 'accountType' },
{ name: 'dep' },
{ name: 'username' },
{ name: 'userId' },
{ name: 'email' },
{ name: 'phone' },
{ name: 'tel' },
{ name: 'registDate' },
{ name: 'expireDate' },
{ name: 'lastAccess' },
{ name: 'lastAccessDate' },
{ name: 'note' },
],
If you use the above code, the text displayed on the label disappears, but padding will occur at the top as shown in the attached picture. Is there a way to remove that padding?
This question has accepted answers - jump to:
Answers
I'm not seeing that with the Editor examples, or this one here.
Could you look at that, please, and see if it helps. If it's still not working for you, please can you update that last example, or link to your page, so that we can see the problem.
Colin
I'm working on the vue 3 project. The above codes are my current <script setup> and <template> codes. When you do this, padding appears at the top like in the picture above. Originally, text is displayed in that part, but since you removed the label from field:[], text is not displayed, but padding still occurs. That doesn't happen in the example, so I'm also questioning why it does. Do you happen to know a solution?
I'm working on the vue 3 project. The above codes are my current <script setup> and <template> codes. When you do this, padding appears at the top like in the picture above. Originally, text is displayed in that part, but since you removed the label from field:[], text is not displayed, but padding still occurs. That doesn't happen in the example, so I'm also questioning why it does. Do you happen to know a solution?
You don't have a
fields.label
for each field - I strongly suspect that will be the issue (i.e. there is an emptylabel
). I can't say with 100% certainty without being able to see it though. Can you give me a link to the page showing the issue? As you note it doesn't happen in the examples, so we'd need to be able to see it to diagnose it. Also you could confirm if this is the case by right clicking on the space and select "Inspect".You probably want a
label
, otherwise how will user's know what data to enter in the form?Allan
The picture above is the table I made. What I want to do now is to remove the label that appears during the online editing process. That's why I removed the field.label on purpose. The text is not displayed because I removed the field.label, but padding on the label is the current problem and that's what I want to solve.
I tried implementing it on stackbliz to show you the example code, but @datables.net/editor-2023-09-13-dt module was not installed. Is it impossible to install the editor in a place like stackbliz?
Because of the requirement for the authentication header, then yes, at the moment it can't be used there.
Try adding:
To your CSS. However, that is in the default CSS, which makes me thing that maybe the Editor CSS isn't being loaded? Or maybe it is set to scoped, which wouldn't worked for Editor.
Allan
@chita It looks like you account was automatically flagged for spam - apologies for that. We do sometimes get false positives due to the amount of spam that we do get and block.
If you posted a reply, apologies, it looks like it might not have got through. Did you get the inline styling sorted out?
Allan
Yes, it's been solved well. Thank you!