Closed marcelocaser closed 4 years ago
That is a very nice component. Too bad that one in particular is specifically for React. We need to find a raw JavaScript or Jquery based one.
I like the look of https://github.com/jessepollak/card but it concerns me he is not really accepting PR's anymore and has open PR's. But that one of the 3 looks like the most recently maintained.
Working on this...
<h:form id="frmMain">
<p:panelGrid id="pnlCreditCard" columns="4">
<f:facet name="header">
<pe:creditCard id="creditCard" />
</f:facet>
<p:inputText id="txtNumber" placeholder="Card number" pt:name="number" />
<p:inputText id="txtName" placeholder="Full name" pt:name="name" />
<p:inputText id="txtExpiry" placeholder="MM/YY" pt:name="expiry" />
<p:inputText id="txtCvc" placeholder="CVC" pt:name="cvc" />
</p:panelGrid>
</h:form>
Wow! a great job @melloware! I can't wait to be able to test it!
@jepsar @aripddev please review the commit of this new component https://github.com/primefaces-extensions/core/commit/e2dc639feefb9ea3d82f4826465d82e663516661
Attached is a runnable test project to test the component: pfe-card.zip
The only disappointing thing is the library's heavy use of eval()
prevents it from being used with primefaces.CSP.
Solved the CSP problem! Had to change webpack to build the JS without eval() statements. Now the component works with CSP.
any date for the final version?
Probably 8.0.1 in the next 1-2 weeks. @aripddev is finishing up his FuzzySearch component
OK card is done and showcase example added.
8.0.1 is now in Maven Central if you want to give this component a shot @marcelocaser
Sorry make that 8.0.2. Found a bug
thanks a lot @melloware
@marcelocaser make sure to read this thread: https://github.com/primefaces-extensions/primefaces-extensions.github.com/issues/790
yes!! thanks!! great job!
Hello Guys , iam using Credit Card and i want to override the placeholderNumber how can i do that
Hello Guys , iam using Credit Card and i want to override the placeholderNumber how can i do that
There is a property placeholderNumber
"Placeholder for the card number. Default '•••• •••• •••• ••••'". Is it not working?
Yeah , yeah sorry melloware for disturbing it is working, i just was making changes in another page and wait for the result Lol
No worries glad you got it working.
@mortadha-dev did you figure out your issue?
Yes resolved thank you
Hello Melloware i want to have list of credit cards in a carousel view but the color dissapear , can you please help me
`
</h:form>`
@mortadha-dev please create a new issue and attach a reproducer using https://github.com/primefaces/primefaces-test
Agreed with @jepsar and also our new Issues area is here: https://github.com/primefaces-extensions/primefaces-extensions/issues
Okay i will create a new issue
I suggest writing a credit card component as in the example below: https://github.com/amarofashion/react-credit-cards