When setting the format of a "text view", we need to recover existing values for properties that will get default values otherwise.
The "textAlignment" of a UIButton is available through a "titleLabel" object instead of directly on itself (see IOS documentation fo UIButton).
Co-authored-by: Romain Vincent <54814371+romain20100@users.noreply.github.com>
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
* feat(textview): added maxLines property
* feat(text-view): moved implementation to TextView
* feat(text-view): changes based on CR
* feat(text-view): Normalize behavior in between android and iOS
* chore: updated NativeScript.api.md
* chore: add new line before return
Co-authored-by: Dimitar Topuzov <dtopuzov@gmail.com>
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
* fix: return default tab background color
when the background color is not explicitely set through css
* chore: update NativeScript.api.md
* fix: do not cast return getTabBarBackgroundColor to ColorDrawable
* chore: added comment and method check
Co-authored-by: Alexander Vakrilov <alexander.vakrilov@gmail.com>
* feat(html-view): Additional properties for HtmlView component
- Allow to set text color with `color` CSS property.
- Allow to set link color with `link-color` CSS property.
- Allow to set font attributes with `font-family` and `font-size` CSS properties.
- Make text selectable on Android by default (for consistency with IOS).
- Remove extra padding on IOS.
* refactor: Move uiColorToHex function to nativescript-core/color module
* test: adding test for new HtmlView css properties
Co-authored-by: Vasil Trifonov <v.trifonov@gmail.com>
* Added iOS specific height and width attributes to ShowModalOptions
* Set the height and width of the popup dialog to the presenting controller
* dialog options ios attributes presentationStyle, height & width are made optional
* Updated NativeScript.api.md for public API changes
* Update with git properties
* Public API
* CLA update
* feat(ProxyViewContainer): proxy layout properties to children
* update import path
* fix(ProxyViewContainer): Layout properties not applied to new children
* test(ProxyViewContainer): Add test for layout properties
* chore: fix tslint errors
* feat: support requestAnimationFrame
* add native helpers to measure time
* test(animation-frame): add tests
* chore: refactor animation-frame to its own module
* chore: fix tslint
Move the logic from core modules to iOS runtime. This way watches
and expressions evaluation in console will work for apps which
do not use the core modules (e.g. TestRunner of iOS runtime)