-
Notifications
You must be signed in to change notification settings - Fork 237
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
Support for numbered and unnumbered Lists #384
Comments
How should this be implemented? Would we be generifying the Paragraph similarly to how we generified the Segment? In which case, rather than a list of public class StyledTextArea<Line, LS, Seg, S> {
// rather than "getParagraphs()" this would now be
public List<Line> getLines();
}
// thus generifying the Paragraph to be
StyledTextArea<
// paragraph is now lines
Either<NestedList, Paragraph<String>>, String,
// your custom object support
Either<StyledText<String>, Image>, String>
> area = //; |
Ah no, I am still busy with unscrambling the knots in my head, caused by all those generic types from the My current thinking is that a Paragraph must not be as generic as a Segment - and a Paragraph's list structure is more tied to the Paragraph's style than to its type. The current approach is to add an My playground for this enhancement is https://github.com/afester/RichTextFX/tree/paragraphBullets. It already implements indentation of single paragraphs and rendering for level dependent bullets: Its still a draft only, with many hard coded pieces, just to get an idea where to implement the various bits&pieces. |
Does a simple example exist yet for doing this? |
Unfortunately, no. afester's playground is probably the best place to start. |
I also urgently need this feature. afester's example must have been deleted. |
Seems to be still there in the |
I do not see it …. any class inside this branch I should look at?
… On 20 Oct 2017, at 16:40, JFormDesigner ***@***.***> wrote:
afester's example must have been deleted
Seems to be still there in the paragraphBullets branch in his repo:
https://github.com/afester/RichTextFX/tree/paragraphBullets <https://github.com/afester/RichTextFX/tree/paragraphBullets>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#384 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AJF7XVeI01ZL9eVX8QPXZxazaGUf_4iLks5suLDNgaJpZM4KaNyb>.
|
Sorry, don't know... never used it |
I'd check out a local branch of the build, and see where |
Note: The RichTextDemo meanwhile supports bullets (see #850). Probably this is sufficient for this enhancement request - I would like to check if this can be extended to numbered lists though. |
It should be possible to define numbered and unnumbered, nested lists. Each paragraph in the list would serve as a list item, the paragraph would be indented according to its level inside the nested list, and optionally prepended either with a level specific bullet (ideally defineable by CSS) or a numeric value, either as single numbers or as combined numbers (like 1., 1.1, 1.2, 1.2,1 etc).
This requires enhancements in the data model (optionally allowing to add each paragraph to a List) and in the rendering layer (indenting ParagraphText and adding the bullet node).
It also requires some adjustments in the behaviour of the component: When pressing enter inside a paragraph which is part of a List, the new Paragraph will become a list item of the same List.
The text was updated successfully, but these errors were encountered: