Skip to content

Commit d535aea

Browse files
committed
add get for number lines view
1 parent 0f6cac7 commit d535aea

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • codeeditor/src/main/java/me/testica/codeeditor

codeeditor/src/main/java/me/testica/codeeditor/Editor.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ class Editor(context: Context, attrs: AttributeSet) : LinearLayout(context, attr
7979
return editText
8080
}
8181

82+
/**
83+
* Get number lines widget to access the whole API
84+
* Make whatever you want, but keep in mind that you may change default behaviour.
85+
* Get Fun!
86+
*/
87+
fun getNumLinesView(): EditorNumberLines {
88+
return numLinesView
89+
}
90+
8291
/**
8392
* Set syntax highlight rules
8493
* Keep in mind that rules may overlapped highlight of others, so the rule position matter

0 commit comments

Comments
 (0)