-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flyover text as secondary dialog title #2647
Comments
Using flyover here might cause developer miss adding localized text. |
@MJ1998 We are already localizing flyover text, so no worries there. Lines 404 to 418 in 603792f
Using help extension is also an option, but we are already using it as help card. Declaring a help extension to an item will immediately show a help button, wanting to not show a help button and instead showing the help extension text in the dialog title is not possible. |
@FikriMilano, btw, why not change the text in the questionnaire itself ? |
@MJ1998 design reasons, in this case, we would like the question as flyover text, instead of a text above the field. When we only use flyover text as question, the question in the dialog is null, we would like for the dialog to still show the question that's from the flyover text. |
if we're using fly over as the title for the dialog, shouldn't we just not use the question text as the dialog title? how would you customise the dialog title if you already have question text? |
|
What if you use questionnaire-rendering extension and set code to "no-header" ? |
Yeah but what I mean is I'd like for you to be able to do that using only 1 questionnaire item... I feel it's easier just to use the flyover text for the dialog title (without first checking the question text) |
|
@FikriMilano Sorry I thought there is some "questionnaire-rendering" extension. |
@MJ1998 feels like a very roundabout way to do it, no? Would be simpler to use the custom extension to directly change the dialog title i.e. the custom extension will contains the dialog title |
why would we want to disable header test? |
they that should be used as question title. if we're forcing questionnaire authors to write split their questions into two because of the dialog title it's bad for consistency. imagine if questionnaire authors need to know the quirks of android fhir sdk sdc library to be able to write a questionnaire that's correctly rendered - we don't want that. i'd rather if we reuse an extension, or come up with a new extension for the dialog title. |
By header I mean item.text. Disabling item.text will let users specify one but it will only show as the dialog title and hide the title above the input field.
+1 to Jing. A custom extension is better than custom logic in code.
Also you are right @FikriMilano. I guess we can have a custom extension which provides a dialog title. |
why do you need an anternative title again? is it because of space? would this work https://build.fhir.org/ig/HL7/sdc/StructureDefinition-sdc-questionnaire-shortText.html? |
@jingtang10 we want a dialog title that can be defined with a custom extension, or simply reuse the flyover extension. The extension you mentioned has a different purpose |
Yes but why do you want an alternative title? Is it because of space? Would the short text be more suitable than fly over? |
It's not about space. It's just when we use flyover text as a question in a dropdown field, but not using item.text (it's null), The dialog we opened has no title, but we still want to display the title, where in this case, the question is defined as flyover text. |
but why is the question text null in this case? i'm trying to look for the most sensible way for both questionnaire authors and implementation to do this using the right extensions. i know for your question you might not have text field but the question is why? This dictates if we will try to reuse an extension or create a new extension. In the original screenshot I am seeing question text in the background actually. |
does it not have question text because you're using another display item for the question text before this drop down? that is strange and i would argue it's a usage pattern that should be discouraged. |
Fikri's reply:
|
Thanks @FikriMilano for the replies to my questions - now I understand the issue I'm happy with the PR. |
Is your feature request related to a problem? Please describe.
Currently, when the item.text is null, the title of the dialog is also null. We'd still like to have something displayed as the dialog title, and the closest thing is to display the flyover text. Unless there's a specific extension to display a dialog title (couldn't find one).
Currently:
Describe the solution you'd like
If item.text is null, apply flyover text as the dialog title.
Describe alternatives you've considered
Specific extension to display a dialog title (couldn't find one).
Additional context
Would you like to work on the issue?
Yes
The text was updated successfully, but these errors were encountered: