Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
nativescript-carousel-without-page-indicators
Advanced tools
Readme
A simple carousel component for NativeScript.
Platform | Supported | Version | NativeView |
---|---|---|---|
iOS | Yes | iOS 8.1+ | DKCarouselView |
Android | Yes | API 15+ | ViewPager with PageIndicatorView |
Run tns plugin add nativescript-carousel
in the ROOT directory of your project. You must clean your project after adding a plugin with native dependencies. This can be done by executing tns platform remove android
(or ios) and then tns platform add android
(or ios). The newer versions of the NS CLI, provide a clean
command that does this in one script if you like that option as well.
Check out the demos included in this repo for instructions on how to use the Carousel with your choice of framework:
itemTemplate
)Assign a data-array to generate the slides and apply the bindingContext. If items
is populated then you must use the template-option.
items
)Defines the view template for each slide-view to be generated.
Sets/Gets the active page by index
Shows or hides the page-indicator
Sets the active indicator color. Default is semi-transparent white. Use hex or color-name.
Sets the color of unselected indicators
By default the indicator is centered at the bottom. You can use points (x,y) to move the indicator. E.g. indicatorOffset="100,100"
If true last slide will wrap back to first and visa versa
If set to 'true' scrolling will bounce at the first/last page (non-infinite). Default is 'false'.
Defines the interval in seconds to wait before the next slide is shown. Default is 0 (off).
Enables/Disables user scroll on the Carousel.
Returns the DKCarouselView
object.
Returns the ViewPager
object.
Sets the pager-indicator animation type. Choose between: color
, slide
, scale
, worm
, thin_worm
, fill
, drop
or none
. Default is none
.
Sets the pager-indicator animation duration in milliseconds. Default is 500.
Sets the pager-indicator alignment. Choose between top
or bottom
. Default is bottom
.
Sets the pager-indicator dot radius.
Sets the pager-indicator dot padding.
Set the indicator count which will change the underlying Android data adapter. See issue #5 discussion
iOS | Android |
---|---|
NONE | COLOR | SCALE | SLIDE |
---|---|---|---|
WORM | THIN_WORM | FILL | DROP | SWAP |
---|---|---|---|---|
6.1.0
6.0.0
4.2.5
PagerAdapter changed the adapter's contents without calling PagerAdapter#notifyDataSetChanged!
error on Android.refresh()
function. Safer to call on demand.4.2.1
4.2.0
4.1.0
pageIndicatorCount
for Android to enable dynamically changing the length of the carousel items array without Android throwing a crash about the adapster set changing incorrectly.4.0.2
4.0.0
3.1.1
notifyDataSetChanged
issue. Thanks @OPADA-Eng3.1.0
3.0.2
3.0.1
refresh
when navigating back to a view with a Carousel.3.0.0
indicatorOffset
, thanks @sitefinitysteve.nativescript-orientation
plugin in order to trigger UI-refresh.2.4.2
bounce
property to the plugin and the Pod. Thanks to @sitefinitysteve.2.4.1
Items
binding, would not refresh Carousel-view.2.4.0
ViewPager.populate
exception on Android.2.3.1
Trying to link invalid 'this' to a Java object
). Thanks @peterstaev.swap
!2.3.0
indicatorColorUnselected
. Allows you to set color to the unselected dots.2.2.0
refresh
function that could cause a crash or removal of slides (Android).drop
, scale
and thin_worm
.2.1.2
2.1.1
2.1.0
1.1.0
1.0.0
I will accept pull requests that improve this and assign credit.
cd src && npm run setup
npm run demo.android
for android developmentnpm run demo.ios
for iOS developmentnpm run demo-ng.ios
for iOS Angular appnpm run demo-ng.android
for Android Angularnpm run demo-vue.ios
for iOS Vue appnpm run demo-vue.android
for Android VueFAQs
Carousel component for NativeScript (iOS & Android).
The npm package nativescript-carousel-without-page-indicators receives a total of 3 weekly downloads. As such, nativescript-carousel-without-page-indicators popularity was classified as not popular.
We found that nativescript-carousel-without-page-indicators demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.