Comments (1)
Hi @SamMousa,
Please accept my apologies for the delayed reply. From what I gather, you wish to create a custom property and define a custom property's placeholder. The placeholder text should appear in a SurveyJS Creator's Property Grid. If so, you can register a custom property grid editor within the PropertyGridEditorCollection
(View Demo). Define a placeholder for the custom property grid editor. Consider the following sample demo:
Survey.Serializer.addProperty("question", {
name: "buttontitle",
type: "customstrng",
displayName: "Button Title",
category: "general",
visibleIndex: 3
});
SurveyCreatorCore.PropertyGridEditorCollection.register({
fit: function(prop) {
return prop.type === "customstrng";
},
getJSON: function(obj, prop,options) {
return {
type: "text",
placeholder: "Enter a button title"
}
}
});
View Plunker
Let me know if this option may suit you.
from survey-library.
Related Issues (20)
- [Mobile] The Cancel button is not translated in Dropdown
- Dynamic panel (tab view). The menu button doesn't appear
- Change position of file delete button in the file question
- Broken alignment on the Preview. HOT 2
- Button navigation issues HOT 2
- Animation: PanelDynamic
- Popup submenu
- `setValueExpression` and `resetValueIf` do not change the question value if the question is read-only
- Implement notification about 64k post limit when uploading to surveyjs.io
- Input masks: Calculate text alignment dynamically to allow proper inheritance from mask classes
- Do not execute the `"runexpression"` trigger on switching to the next page
- The `onValueChanged` event is not raised when changing a question comment if the `valueName` property is set
- Dynamic panel (tab view). No room for search editor.
- Buttons progress bar is broken in RTL
- Panel in RTL layout looks broken
- Expressions agains matrix dynamic question doesn't work correctly if it is bind to a checkbox with valuePropertyName setup
- Wrap questions titles and show title actions in full instead of "..."
- Rating Scale: Switching the "Rating configuration" option to Auto throws an error
- Add a custom Button next to side settings dashboard
- Table of content: support navigation to panels inside pages
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 survey-library.