i need to show icon on message box. by using following code on alfresco. i can only show tile and content of msg box. please help me to show icon (?,!,...)
Alfresco.util.PopupManager.displayPrompt(
{
title:"test",
text: "warning"
});
Isn't this enough?
In the appearance section in the share config you can add the following.
"Help Text
A field can have help text to aid the user when filling in the form"
This has been quoted from the wiki https://wiki.alfresco.com/wiki/Forms.
There is predefined function icon in Alfresco.util.PopupManager.displayPrompt you can use that to show icon on message box. This icon will display next to text.
See here for more details
i.e.
Alfresco.util.PopupManager.displayPrompt(
{
title:"test",
text: "warning",
icon: "/images/confirmicon.png"
});
Related
I tried changing go to text in ant design pagination.
document says use showQuickJumper={{ goButton: "Your text" }} but result is:
antd pagination go to text
as you see "go to" text is still visible.
how to hide it?
The showQuickJumper parameter affects the display of the quick jump block.
If a component is passed as a goButton value, then it will be displayed as a confirmation button.
In order to achieve the desired behavior and change the "Go to" text to another, you need to pass the locale parameter and override the jump_to property.
<Pagination
showQuickJumper={{
goButton: <button>Your custom button to confirm</button>
}}
total={500}
locale={{ jump_to: "Your text" }}
/>
Unfortunately there is no indication about this anywhere in the documentation. It is relevant for antd version 4.17.0 and earlier
You can use locale
<Pagination
locale={{ jump_to: "Your text", page: 'Your page' }}
/>
I'm using a Qt 5.14 QML Text component with the following code:
Text {
text: reader.content
onLinkActivated: Qt.openUrlExternally(link)
}
When I click a markdown link displayed in the Text component, a popup appears:
I really don't like the options; I cannot click OK to continue and I don't want to go to the Microsoft store.
Here's an example of link text that produces this behavior:
[bad link]("https://stackoverflow.com")
The link is surrounded by quotes. Removing the quotes fixes the problem:
Text {
text: reader.content
onLinkActivated: Qt.openUrlExternally(link.replace(/['"]+/g, ''))
}
Making UI of my app using code only.
Can't find how customize couple elements:
1. Button 'Back' now it looks like:
and it should looks like:
So, how I can get rid of 'Back' text from button title, keeping '<' system icon there? And how I can change colors of back button and title of navigation bar?
try
self.navigationController?.navigationBar.tintColor = UIColor.white
Try:
override func viewDidLoad(){
//any other initial stuffs
//for the bar
navigationController?.navigationBar.tintColor = UIColor.black
//for the button
navigationController?.navigationBar.backItem?.titleView?.tintColor = UIColor.white
}
Follow the instruction from your xcode. You can do this easily. I also marked on the image . Select 1. Select the Standard Editor, 2. Show the File inspector 3 Set global Ting
With XCode 12.3 can change the Title Color and Back Button using the following.
I have seen countless articles about how to launch a custom version of the WP3.5 Media uploader without the sidebar but cannot for the life of me find anything that actually tells you how to launch it WITH one.
I have modified things quite a bit to allow users to sideload when they use the 'Insert From URL' option and want to enable the 'Insert from URL' option in other areas of my application.
Ideally I'd like this to appear as a third option when viewing the uploader in image mode so you have 'upload files' | 'media library' | 'insert from URL' but failing that I'd just like the side bar to show...
I am currently using this
ImageChooser = wp.media.frames.icsImageChooser = wp.media({
// Set the title of the modal.
title: 'Choose or Upload Image',
// Tell the modal to show only images.
library: {
type: 'image'
},
// Customize the submit button.
button: {
// Set the text of the button.
text: 'Use This'
}
});
Does any one know what I need to add to that to achieve either of my desired outcomes as described above?
I'm looking to have a image that when clicked loads up a node into a colorbox.
So far I'm using Colorbox and Colorbox_node modules, and have a block with this bit of code
< a class="colorbox-node" href="cast?width=500&height=500" >
Link to my node alised 'cast'
< /a >
The text link when clicked acts exactly as I want by poping up a colorbox. Though if I replace the text with an image link like:
< a class="colorbox-node" href="cast?width=500&height=500" >
< img src="/images/cast.png" / >
< /a >
The image displays, but is not a clickable link.
Have I screwed up somewhere or is there a different way all together of doing this?
Create new View:
Add following fields in Order:
Nid
Title
Image
Body
Title: Config
Formatter: Image
Image Style: thumbnail
Link image to: Nothing
Click on REWRITE RESULTS and Select Checkbox
Output this field as a link
Set Options As follow:
Link Path: node/[nid]/?width=600&height=600
Checked Checkbox "Use Absolute Path"
Link Class: colorbox-node
Alt Text: [title]
Save your view and run view.
Click on any of your image to load the whole node content in Colorbox.
Note: You must installed Colorbox, colorbox_node module.
The answer by AshwinP works, but remember to add a field of type Content: Nid without label and "exclude from display" checked, and put it before the image that you want to link, otherwise it will be impossible to link it to the node. Also the Image style and the alt text doesn't matter what you put in there, just go with your own settings.
This isn't working anymore, seems that now it's need to add data-options to the link :(