Comments (2)
Hello @Raghuvorkady,
Thank you for sharing your findings.
The sap.m.MultiInput control internally uses sap.m.Tokenizer, which is a container for sap.m.Token instances.
One possible reason for the delete button not showing could be that the editable
property on the sap.m.Tokenizer control is set to false
. By default, this property is true
, so it should generally allow token deletion unless explicitly changed.
The example you've provided should work without any issues. I've also created a simple example and verified that it works on a local server with the following setup:
sap.ui.define([
"sap/m/MultiInput",
"sap/m/Token"
], function (MultiInput, Token) {
"use strict";
var oMultiInput = new MultiInput({
placeholder: "Enter values...",
width: "200px"
});
oMultiInput.addToken(new Token({ key: "token1", text: "Token 1" }));
oMultiInput.addToken(new Token({ key: "token2", text: "Token 2" }));
oMultiInput.addToken(new Token({ key: "token3", text: "Token 3" }));
oMultiInput.placeAt("content");
});
Please ensure that the editable
property is not being overridden to false somewhere in your code. This should resolve the issue with the delete button not appearing.
Regards,
Konstantin Gogov
SAPUI5 GitHub Dispatcher
from openui5.
This issue was due to overriding the css styles.
Thank you Konstantin.
from openui5.
Related Issues (20)
- Strange style of active and inverted sap.m.ObjectStatus control used in sap.ui.table.Column HOT 2
- Using setModel on sap.m.table.columnmenu.Menu throws exception HOT 7
- Setting ValueState to error clears the field HOT 2
- Type 'import("sap/ui/core/Popup").Dock' is not assignable to type 'typeof Dock' using @sapui5/types: "1.126.0" HOT 3
- TypeScript / API Doc: Missing parameter for the `new sap.ui.test.Opa5()` constructor HOT 2
- Can't set CustomData to sap.m.table.columnmenu.ActionItem HOT 1
- Release Notes page in Documentation is broken HOT 1
- RadioButtonGroup - destroyButtons doesn't clear "selectedIndex" HOT 5
- Setting false to field showCounts not effective for multiple views in manifest json HOT 1
- MultiComboBox in Dialog behaving extremly weird HOT 2
- Why does `SorterProcessor` always convert compared strings to uppercase? HOT 2
- Exception when navigating to an URL with an Id as part of the route and reloading HOT 3
- Button: Type="Ghost" has a Different Visual Design in Headers HOT 2
- sap.ui.table.TreeTable `expandToLevel` and tree lazy-loading HOT 1
- Single Planning Calendar can't show current time when set starthour and endhour HOT 1
- JSDoc issue: sap/ui/VersionInfo.load returns Promise<Object> instead of proper type description HOT 1
- OData V2 Requests invalid HOT 5
- sap.m.upload.UploadSet - fileTypes/mediaTypes restriction doesn't work in combination with drag & drop HOT 1
- `SyntaxError` in Input Field When Entering Only an Opening Brace `{` in SAP UI5 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openui5.