I'm creating a message popover that acts as a chat window (See image below)
By default, if the MessageItem control has a text description that is larger than the window, the user can click on the message and UI5 will use a slide navigation to show the complete description. Here is a sample from the docs of this behavior (click on the information button on the bottom of the sample)
Rather than navigate the user to a long description view, I want to simply wrap any long text description to the next line. Is there a way to implement this functionality? I know this is possible with pure CSS, but I don't want to fight the out of box UI5 control if there is a cleaner way of doing this?
Edit: The code is pretty generic
this.oMessageItemTemplate = new MessageItem({
type: "{namedModel>type}",
title: "{namedModel>message}",
description: "{namedModel>description}",
longtextUrl: "{namedModel>longtextUrl}"
});
Related
Im new with Angular and I am creating a chat application with the same facebook behavior. I need each chat box to appear at the bottom of the screen (right now they appear in the middle of the screen) and as a user is selected the box that comes out You should leave next to the one that is already there.
I also need that when those chat boxes occupy the entire space, something similar to the image attached is shown, a button where the first boxes that you select come out so that you can select and resume that conversation. In the following link I have my application working. Could someone help me? The application code and the demo can see it here.
The image of the behavior that I want is the following:
I really need help. I am unable to find any examples to this particular problem. I have spent many hours and really want to give up. We have never covered this in the program I am in and I really do want to learn even how to begin. I spent 5 plus hours working on this and came up with a solution that worked but since it did not follow all rules it was not accepted. We have not covered tooltips so I’m not sure how to go about this.
The question is to write a tool-tip that can be invoked for any html element on a given page. The preferred position can be viewed left right or bottom of html element. Should contain title, Content, Okay button that will dissolve after user clicks the okay button.
api to be used is
$('#HTML element').showToolTip ( {
Title: 'This is the title'
Content: 'This is the content'
onApprove: function() {
//to be called after Okay button is clicked.
}
} );
showToolTip is a jQuery plugin to create a tool-tip-style alert popup which can be attached to any element when triggered.
It provides a callback function which will be fired when the user clicks on the Okay button inside the alert popup.
The plugin grabs dimensional information about the popup, host element and the viewport width and height to calculate in which direction to show the alert popup. For example it automatically re position the alert popup if TOP, RIGHT, BOTTOM, LEFT doesn't have enough space.
Visit this link to see how to use
I am working on a Tikiwiki for work and am trying to find a way that makes a popup box appear when mousing over certain words but I want the info inside the box to be referencing a bookmark so that the info is always up to date.
You can use the MOUSEOVER plugin to create the popup box:
{MOUSEOVER(label="Hover over this text to see my message.")}Hello over there. It's fine!{MOUSEOVER}
See the docs (http://doc.tiki.org/PluginMouseover) for details.
Sorry to bother you, but I was hoping you could help me. We are currently building a new web site and have run into some issues with our programmer. I am trying to do some research to see if we can find a way for my issue to be solved so that I can let my programmer know.
First issue:
Go here: http://tinyurl.com/276we3f
At the pop-up just enter some example text.
Now, when you hover over any text boxes on the left of the card, you will see that the text boxes become highlighted with a border. If you click in a text box, a properties pop-up appears that allows you to change the font, color, alignment, etc. When you click close, it will take you back to the product and will highlight the text. I want the user to be able to click anywhere within a text box to type new text. For example, in the bottom text box, where it says "join us to celebrate", the user should be able to click anywhere in that text to change the wording. They might want it to say "join me to celebrate" instead of "join us to celebrate". However, if they click next to the word "us" so that they can change it....the pop-up appears.
Is there a way to just have a pop-up appear to the side and not have the background grayed out and disabled?
Also, is there a way to be able to click anywhere in the text box to edit just certain words or letters?
Second and final question:
If you click on "Click to add photo", you will see a pop-up appear that allows you to upload an image, edit it, etc. After uploading the image, I want the user to be able to move the image around with their mouse by dragging it and positioning it in the exact spot that they want it in. We also have the arrows where they can click the up, down, left or right arrow in the image editor pop-up....but I would like for them to be able to drag the image with their mouse as well. We know how to enable dragging of the image. However, the problem occurs when the user releases the mouse button. On the mouseup when the user is done dragging....the pop-up will appear since the pop-up is triggered by the release of the mouse button.
Does that make sense?
Sorry for the long message and THANKS SO MUCH for your help!
For the first part of your question, when showing the dialog box for the properties of the text area, you can pop it up as a non-modal window. This means the properties dialog will show but will not lock out the rest of the UI, enabling the user to change the text however they like. It also means the background does not blur/grey out. To pop up a window in a non-modal state, call PopUpManager.createPopUp (or PopUpManager.addPopUp) with the third parameter (modal) set to false.
For the second issue, set a member variable such as "isDragging" to true when you detect that the user is dragging the image around. Then on mouse up, only display the pop up if isDragging is false.
Hope that helps.
Short Version:
"How do you get a simple UITable drill down UINavigationController-styled non-full-screen modal dialog on the iPad?"
Long version:
I have a very specific set of requirements that I can't seem to get working...
I have a functioning iPad program that that needs to pop up a non-full-screen modal view. This modal needs to have a navigation controller and a simple drill-down table that displays a detailed view that I can have edit some values related to the selected item in the table.
Of course I am looking to have the regular "Back" and "Delete" buttons in the Navigation Bar.
I can handle the detailed view, what I am having issues with:
Non-full-screen popup (mine is
always full screen no matter what I
try).
The Navigation controller will not display the Table View I tell it to and the navigation bar does not even have the title I assigned to it in IB.
I can't seem to get any of this working. If anyone has a step by step example of how to do this, that would be great,
~Eric
P.S. I am not afraid of doing this 100% programmatically, but all the examples I have been trying to follow (and failing at extending to my problem) use IB.
As for the fullscreen issue, you need to set modalPresentationStyle to UIModalPresentationFormSheet or UIModalPresentationPageSheet on the controller you want to present modally. I'm not sure of a way to do this through IB.
As for your navigation controller/table view, I think more information is needed to provide an answer.